|
From: <hib...@li...> - 2006-06-28 09:44:12
|
Author: epbernard
Date: 2006-06-28 05:44:07 -0400 (Wed, 28 Jun 2006)
New Revision: 10063
Modified:
trunk/HibernateExt/metadata/src/java/org/hibernate/cfg/annotations/CollectionBinder.java
Log:
Typo in error report
Modified: trunk/HibernateExt/metadata/src/java/org/hibernate/cfg/annotations/CollectionBinder.java
===================================================================
--- trunk/HibernateExt/metadata/src/java/org/hibernate/cfg/annotations/CollectionBinder.java 2006-06-28 05:33:05 UTC (rev 10062)
+++ trunk/HibernateExt/metadata/src/java/org/hibernate/cfg/annotations/CollectionBinder.java 2006-06-28 09:44:07 UTC (rev 10063)
@@ -489,7 +489,7 @@
if ( persistentClass != null && StringHelper.isNotEmpty( this.mappedBy ) ) {
try {
reversePropertyInJoin = 0 != persistentClass.getJoinNumber(
- persistentClass.getProperty( this.mappedBy )
+ persistentClass.getRecursiveProperty( this.mappedBy )
);
}
catch (MappingException e) {
@@ -499,7 +499,7 @@
.append( " in " )
.append( collection.getOwnerEntityName() )
.append( "." )
- .append( this.mappedBy );
+ .append( property.getName() );
throw new AnnotationException( error.toString() );
}
}
|