mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-25 21:04:51 +00:00
HHH-12332 Fix a couple of formatting issues
This commit is contained in:
parent
1e5a8d3c43
commit
0577033193
@ -44,15 +44,15 @@ public boolean isSame(Collection other) {
|
||||
}
|
||||
|
||||
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 @@ void createPrimaryKey() {
|
||||
pk.addColumns( getElement().getColumnIterator() );
|
||||
}
|
||||
else {
|
||||
pk.addColumns( getIndex().getColumnIterator() );
|
||||
pk.addColumns( getIndex().getColumnIterator() );
|
||||
}
|
||||
getCollectionTable().setPrimaryKey(pk);
|
||||
}
|
||||
@ -95,7 +95,7 @@ public void validate(Mapping mapping) throws MappingException {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public boolean isList() {
|
||||
return false;
|
||||
}
|
||||
|
@ -193,7 +193,8 @@ else if ( type instanceof CollectionType ) {
|
||||
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…
x
Reference in New Issue
Block a user