mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
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 static BasicAttribute createSimpleAttribute(
|
||||
if ( isId() ) {
|
||||
// an id must be unique and cannot be nullable
|
||||
for ( Column columnValue : getColumnValues() ) {
|
||||
columnValue.setUnique( true );
|
||||
columnValue.setNullable( false );
|
||||
}
|
||||
identifierGeneratorDefinition = checkGeneratedValueAnnotation();
|
||||
|
Loading…
x
Reference in New Issue
Block a user