Author: epbernard
Date: 2010-10-04 10:05:41 -0400 (Mon, 04 Oct 2010)
New Revision: 20772
Modified:
core/trunk/core/src/main/java/org/hibernate/cfg/AnnotationBinder.java
Log:
HHH-5578 fix incorrect use of JDK 6
Modified: core/trunk/core/src/main/java/org/hibernate/cfg/AnnotationBinder.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/cfg/AnnotationBinder.java 2010-10-04
14:03:09 UTC (rev 20771)
+++ core/trunk/core/src/main/java/org/hibernate/cfg/AnnotationBinder.java 2010-10-04
14:05:41 UTC (rev 20772)
@@ -2661,7 +2661,7 @@
final JoinColumn joinColumn = property.getAnnotation( JoinColumn.class );
if ( property.isAnnotationPresent( ManyToOne.class ) && joinColumn != null
- && !joinColumn.name().isEmpty()
+ && ! BinderHelper.isEmptyAnnotationValue( joinColumn.name() )
&& joinColumn.name().equals( columnName )
&& !property.isAnnotationPresent( MapsId.class ) ) {
hasSpecjManyToOne = true;