Author: stliu
Date: 2010-01-12 22:03:49 -0500 (Tue, 12 Jan 2010)
New Revision: 18527
Modified:
annotations/branches/v3_3_1_GA_CP/src/java/org/hibernate/cfg/annotations/MapBinder.java
Log:
JBPAPP-3384 HHH-4257 map key type no longer inferred correctly, throws exception at
runtime
Modified:
annotations/branches/v3_3_1_GA_CP/src/java/org/hibernate/cfg/annotations/MapBinder.java
===================================================================
---
annotations/branches/v3_3_1_GA_CP/src/java/org/hibernate/cfg/annotations/MapBinder.java 2010-01-13
03:02:51 UTC (rev 18526)
+++
annotations/branches/v3_3_1_GA_CP/src/java/org/hibernate/cfg/annotations/MapBinder.java 2010-01-13
03:03:49 UTC (rev 18527)
@@ -239,6 +239,9 @@
if (mapKeyAnn != null && ! BinderHelper.isDefault( mapKeyAnn.type().type() )
) {
elementBinder.setExplicitType( mapKeyAnn.type() );
}
+ else{
+ elementBinder.setType( property , elementClass );
+ }
mapValue.setIndex( elementBinder.make() );
}
}
Show replies by date