HHH-16340 Avoid checking discriminator duplication when not insertable
This commit is contained in:
parent
814cddfeb4
commit
169757d5b1
|
@ -1103,7 +1103,9 @@ public abstract class PersistentClass implements IdentifiableTypeClass, Attribut
|
||||||
//and checked later, so it needs to be excluded
|
//and checked later, so it needs to be excluded
|
||||||
checkColumnDuplication( cols, getKey() );
|
checkColumnDuplication( cols, getKey() );
|
||||||
}
|
}
|
||||||
|
if ( isDiscriminatorInsertable() ) {
|
||||||
checkColumnDuplication( cols, getDiscriminator() );
|
checkColumnDuplication( cols, getDiscriminator() );
|
||||||
|
}
|
||||||
checkPropertyColumnDuplication( cols, getNonDuplicatedProperties() );
|
checkPropertyColumnDuplication( cols, getNonDuplicatedProperties() );
|
||||||
for ( Join join : getJoins() ) {
|
for ( Join join : getJoins() ) {
|
||||||
cols.clear();
|
cols.clear();
|
||||||
|
|
Loading…
Reference in New Issue