HHH-4773 revert changes

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19305 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Strong Liu 2010-04-27 08:26:14 +00:00
parent 9d1ce4e486
commit 96783f2a7a
1 changed files with 3 additions and 5 deletions

View File

@ -439,11 +439,9 @@ public class Ejb3Column {
column.setPropertyName(
BinderHelper.getRelativePath( propertyHolder, inferredData.getPropertyName() )
);
//although in theory, null is an acceptable value in a Map key
//we need force this column to be not null, as it intended to be the primary key.
if ( nullability != Nullability.FORCED_NULL ) {
column.setNullable( false );
}
column.setNullable(
col.nullable()
); //TODO force to not null if available? This is a (bad) user choice.
column.setUnique( col.unique() );
column.setInsertable( col.insertable() );
column.setUpdatable( col.updatable() );