Skip to content

Commit

Permalink
spaces to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Dec 26, 2022
1 parent 31ff285 commit 7f2e2c5
Showing 1 changed file with 9 additions and 9 deletions.
Expand Up @@ -201,10 +201,10 @@ public Boolean hasIdClassOrEmbeddedId() {
}

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

0 comments on commit 7f2e2c5

Please sign in to comment.