if ( accessType.equals( targetAccessType ) ) { return targetAccessType;
if ( accessType.equals( targetAccessType ) ) { return targetAccessType;
private static JaxbAccessType processIdAnnotations(List<AnnotationInstance> idAnnotations) { JaxbAccessType accessType = null; for ( AnnotationInstance annotation : idAnnotations ) { AnnotationTarget tmpTarget = annotation.target(); if ( tmpTarget == null ) { throw new AssertionFailure( "@Id has no AnnotationTarget, this is mostly a internal error." ); } if ( accessType == null ) { accessType = annotationTargetToAccessType( tmpTarget ); } else { if ( !accessType.equals( annotationTargetToAccessType( tmpTarget ) ) ) { throw new MappingException( "Inconsistent placement of @Id annotation within hierarchy " ); } } } return accessType; }
private static JaxbAccessType processIdAnnotations(List<AnnotationInstance> idAnnotations) { JaxbAccessType accessType = null; for ( AnnotationInstance annotation : idAnnotations ) { AnnotationTarget tmpTarget = annotation.target(); if ( tmpTarget == null ) { throw new AssertionFailure( "@Id has no AnnotationTarget, this is mostly a internal error." ); } if ( accessType == null ) { accessType = annotationTargetToAccessType( tmpTarget ); } else { if ( !accessType.equals( annotationTargetToAccessType( tmpTarget ) ) ) { throw new MappingException( "Inconsistent placement of @Id annotation within hierarchy " ); } } } return accessType; }