mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
HHH-16340 Avoid checking discriminator duplication when not insertable
This commit is contained in:
parent
1394659ff3
commit
0da73a27a5
@ -1103,7 +1103,9 @@ protected void checkColumnDuplication() {
|
||||
//and checked later, so it needs to be excluded
|
||||
checkColumnDuplication( cols, getKey() );
|
||||
}
|
||||
checkColumnDuplication( cols, getDiscriminator() );
|
||||
if ( isDiscriminatorInsertable() ) {
|
||||
checkColumnDuplication( cols, getDiscriminator() );
|
||||
}
|
||||
checkPropertyColumnDuplication( cols, getNonDuplicatedProperties() );
|
||||
for ( Join join : getJoins() ) {
|
||||
cols.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user