[hibernate-commits] Hibernate SVN: r10927 - trunk/Hibernate3/src/org/hibernate/mapping

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Tue Dec 5 13:48:51 EST 2006


Author: steve.ebersole at jboss.com
Date: 2006-12-05 13:48:50 -0500 (Tue, 05 Dec 2006)
New Revision: 10927

Modified:
   trunk/Hibernate3/src/org/hibernate/mapping/PersistentClass.java
Log:
HHH-2282 : PersistentClass propetty lookups and embedded composite identifiers;
consolidate property-ref tests

Modified: trunk/Hibernate3/src/org/hibernate/mapping/PersistentClass.java
===================================================================
--- trunk/Hibernate3/src/org/hibernate/mapping/PersistentClass.java	2006-12-05 18:48:42 UTC (rev 10926)
+++ trunk/Hibernate3/src/org/hibernate/mapping/PersistentClass.java	2006-12-05 18:48:50 UTC (rev 10927)
@@ -369,12 +369,17 @@
 					}
 					else if ( identifierProperty == null && getIdentifierMapper() != null ) {
 						// we have an embedded composite identifier
-						identifierProperty = getProperty( element, getIdentifierMapper().getPropertyIterator() );
-						if ( identifierProperty != null ) {
-							// the root of the incoming property path matched one
-							// of the embedded composite identifier properties
-							property = identifierProperty;
+						try {
+							identifierProperty = getProperty( element, getIdentifierMapper().getPropertyIterator() );
+							if ( identifierProperty != null ) {
+								// the root of the incoming property path matched one
+								// of the embedded composite identifier properties
+								property = identifierProperty;
+							}
 						}
+						catch( MappingException ignore ) {
+							// ignore it...
+						}
 					}
 
 					if ( property == null ) {




More information about the hibernate-commits mailing list