HHH-7121 : unique constraint should not be created for ID columns

This commit is contained in:
Gail Badner 2013-07-18 12:27:20 -07:00
parent 839a102e26
commit d7d4407bad
1 changed files with 0 additions and 1 deletions

View File

@ -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();