HHH-12332 Fix a couple of formatting issues
This commit is contained in:
parent
1e5a8d3c43
commit
0577033193
|
@ -44,15 +44,15 @@ public abstract class IndexedCollection extends Collection {
|
|||
}
|
||||
|
||||
public boolean isSame(IndexedCollection other) {
|
||||
return super.isSame( other )
|
||||
&& isSame( index, other.index );
|
||||
return super.isSame( other )
|
||||
&& isSame( index, other.index );
|
||||
}
|
||||
|
||||
void createPrimaryKey() {
|
||||
if ( !isOneToMany() ) {
|
||||
PrimaryKey pk = new PrimaryKey( getCollectionTable() );
|
||||
pk.addColumns( getKey().getColumnIterator() );
|
||||
|
||||
|
||||
// index should be last column listed
|
||||
boolean isFormula = false;
|
||||
Iterator iter = getIndex().getColumnIterator();
|
||||
|
@ -66,7 +66,7 @@ public abstract class IndexedCollection extends Collection {
|
|||
pk.addColumns( getElement().getColumnIterator() );
|
||||
}
|
||||
else {
|
||||
pk.addColumns( getIndex().getColumnIterator() );
|
||||
pk.addColumns( getIndex().getColumnIterator() );
|
||||
}
|
||||
getCollectionTable().setPrimaryKey(pk);
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ public abstract class IndexedCollection extends Collection {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public boolean isList() {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -193,7 +193,8 @@ public abstract class AbstractPropertyMapping implements PropertyMapping {
|
|||
return;
|
||||
}
|
||||
|
||||
throw new IllegalStateException( "Collection mapping in abstract entity type with a type variable is unsupported! Couldn't add property '" + path + "' with type: " + type );
|
||||
throw new IllegalStateException( "Collection mapping in abstract entity type with a type variable is unsupported! Couldn't add property '"
|
||||
+ path + "' with type: " + type );
|
||||
}
|
||||
else if ( type instanceof EntityType ) {
|
||||
EntityType entityType1 = (EntityType) existingType;
|
||||
|
|
Loading…
Reference in New Issue