HHH-7121 : unique constraint should not be created for ID columns
This commit is contained in:
parent
839a102e26
commit
d7d4407bad
|
@ -136,7 +136,6 @@ public class BasicAttribute extends MappedAttribute {
|
||||||
if ( isId() ) {
|
if ( isId() ) {
|
||||||
// an id must be unique and cannot be nullable
|
// an id must be unique and cannot be nullable
|
||||||
for ( Column columnValue : getColumnValues() ) {
|
for ( Column columnValue : getColumnValues() ) {
|
||||||
columnValue.setUnique( true );
|
|
||||||
columnValue.setNullable( false );
|
columnValue.setNullable( false );
|
||||||
}
|
}
|
||||||
identifierGeneratorDefinition = checkGeneratedValueAnnotation();
|
identifierGeneratorDefinition = checkGeneratedValueAnnotation();
|
||||||
|
|
Loading…
Reference in New Issue