private void bindTypeAnnotations ( ) { // TODO:: need to check @Embeddable attributes as well! // TODO:: need to Handle association override in // RelationMetadataProcessor. for ( Class < ? extends Annotation > ann : validJPAAnnotations ) { if ( getJavaType ( ) . isAnnotationPresent ( ann ) ) { checkForValid ( ) ; Annotation annotation = getJavaType ( ) . getAnnotation ( ann ) ; if ( ann . isAssignableFrom ( AttributeOverride . class ) ) { bindAttribute ( annotation ) ; } else if ( ann . isAssignableFrom ( AttributeOverrides . class ) ) { AttributeOverride [ ] attribAnns = ( ( AttributeOverrides ) annotation ) . value ( ) ; for ( AttributeOverride attribOverann : attribAnns ) { bindAttribute ( attribOverann ) ; } } } } }
Bind type annotations .