public String value() { return name(); }
public static JaxbAccessType fromValue(String v) { return valueOf(v); }
if ( accessType.equals( targetAccessType ) ) { return targetAccessType;
protected AccessType getDefaultAccess() { if ( entity.getAccess() != null ) { return AccessType.valueOf( entity.getAccess().value() ); } return null; }
if ( accessType.equals( targetAccessType ) ) { return targetAccessType;
protected AccessType getDefaultAccess() { if ( entity.getAccess() != null ) { return AccessType.valueOf( entity.getAccess().value() ); } return null; }
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; }
public String value() { return name(); }
public static JaxbAccessType fromValue(String v) { return valueOf(v); }
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; }