Author: d.plentz
Date: 2007-10-28 12:51:03 -0400 (Sun, 28 Oct 2007)
New Revision: 14156
Modified:
core/trunk/core/src/main/java/org/hibernate/cfg/HbmBinder.java
Log:
[HHH-1916] param values in generator element should be trimmed during HbmBinding
Modified: core/trunk/core/src/main/java/org/hibernate/cfg/HbmBinder.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/cfg/HbmBinder.java 2007-10-28 16:50:46 UTC
(rev 14155)
+++ core/trunk/core/src/main/java/org/hibernate/cfg/HbmBinder.java 2007-10-28 16:51:03 UTC
(rev 14156)
@@ -1996,7 +1996,7 @@
Iterator iter = subnode.elementIterator( "param" );
while ( iter.hasNext() ) {
Element childNode = (Element) iter.next();
- params.setProperty( childNode.attributeValue( "name" ), childNode.getText()
);
+ params.setProperty( childNode.attributeValue( "name" ),
childNode.getTextTrim() );
}
model.setIdentifierGeneratorProperties( params );
Show replies by date