Author: cbredesen
Date: 2009-01-06 15:49:20 -0500 (Tue, 06 Jan 2009)
New Revision: 15749
Modified:
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/pretty/MessageHelper.java
Log:
Removing errant commit against JBPAPP-1250, JBPAPP-1251
Modified: core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/pretty/MessageHelper.java
===================================================================
---
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/pretty/MessageHelper.java 2009-01-06
20:29:32 UTC (rev 15748)
+++
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/pretty/MessageHelper.java 2009-01-06
20:49:20 UTC (rev 15749)
@@ -277,11 +277,11 @@
s.append( "<null>" );
}
else {
- if ( persister.getCollectionType().getLHSPropertyName() != null) {
- s.append( persister.getOwnerEntityPersister().getIdentifierType().toLoggableString(
id, factory ) );
- } else {
- s.append( persister.getIdentifierType().toLoggableString( id, factory ) );
- }
+ // Need to use the identifier type of the collection owner
+ // since the incoming is value is actually the owner's id.
+ // Using the collection's key type causes problems with
+ // property-ref keys...
+ s.append( persister.getOwnerEntityPersister().getIdentifierType().toLoggableString(
id, factory ) );
}
}
s.append( ']' );
Show replies by date