[hibernate-commits] Hibernate SVN: r19305 - core/trunk/annotations/src/main/java/org/hibernate/cfg.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Tue Apr 27 04:26:14 EDT 2010


Author: stliu
Date: 2010-04-27 04:26:14 -0400 (Tue, 27 Apr 2010)
New Revision: 19305

Modified:
   core/trunk/annotations/src/main/java/org/hibernate/cfg/Ejb3Column.java
Log:
HHH-4773 revert changes

Modified: core/trunk/annotations/src/main/java/org/hibernate/cfg/Ejb3Column.java
===================================================================
--- core/trunk/annotations/src/main/java/org/hibernate/cfg/Ejb3Column.java	2010-04-27 08:23:55 UTC (rev 19304)
+++ core/trunk/annotations/src/main/java/org/hibernate/cfg/Ejb3Column.java	2010-04-27 08:26:14 UTC (rev 19305)
@@ -439,11 +439,9 @@
 					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() );



More information about the hibernate-commits mailing list