spaces to tabs
This commit is contained in:
parent
31ff2851c7
commit
7f2e2c5d79
|
@ -201,10 +201,10 @@ public class InheritanceState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get the annotated elements and determine access type from hierarchy,
|
* Get the annotated elements and determine access type from hierarchy,
|
||||||
* guessing from @Id or @EmbeddedId presence if not specified.
|
* guessing from @Id or @EmbeddedId presence if not specified.
|
||||||
* Change EntityBinder by side effect
|
* Change EntityBinder by side effect
|
||||||
*/
|
*/
|
||||||
private ElementsToProcess getElementsToProcess() {
|
private ElementsToProcess getElementsToProcess() {
|
||||||
if ( elementsToProcess == null ) {
|
if ( elementsToProcess == null ) {
|
||||||
InheritanceState inheritanceState = inheritanceStatePerClass.get( clazz );
|
InheritanceState inheritanceState = inheritanceStatePerClass.get( clazz );
|
||||||
|
@ -249,12 +249,12 @@ public class InheritanceState {
|
||||||
return AccessType.getAccessStrategy( xclass.getAnnotation( Access.class ).value() );
|
return AccessType.getAccessStrategy( xclass.getAnnotation( Access.class ).value() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Guess from identifier.
|
// Guess from identifier.
|
||||||
// FIX: Shouldn't this be determined by the first attribute (i.e., field or property) with annotations, but without an
|
// FIX: Shouldn't this be determined by the first attribute (i.e., field or property) with annotations,
|
||||||
// explicit Access annotation, according to JPA 2.0 spec 2.3.1: Default Access Type?
|
// but without an explicit Access annotation, according to JPA 2.0 spec 2.3.1: Default Access Type?
|
||||||
for ( XClass xclass = clazz;
|
for ( XClass xclass = clazz;
|
||||||
xclass != null && !Object.class.getName().equals( xclass.getName() );
|
xclass != null && !Object.class.getName().equals( xclass.getName() );
|
||||||
xclass = xclass.getSuperclass() ) {
|
xclass = xclass.getSuperclass() ) {
|
||||||
if ( xclass.isAnnotationPresent( Entity.class ) || xclass.isAnnotationPresent( MappedSuperclass.class ) ) {
|
if ( xclass.isAnnotationPresent( Entity.class ) || xclass.isAnnotationPresent( MappedSuperclass.class ) ) {
|
||||||
for ( XProperty prop : xclass.getDeclaredProperties( AccessType.PROPERTY.getType() ) ) {
|
for ( XProperty prop : xclass.getDeclaredProperties( AccessType.PROPERTY.getType() ) ) {
|
||||||
final boolean isEmbeddedId = prop.isAnnotationPresent( EmbeddedId.class );
|
final boolean isEmbeddedId = prop.isAnnotationPresent( EmbeddedId.class );
|
||||||
|
|
Loading…
Reference in New Issue