]
Gail Badner updated HHH-1916:
-----------------------------
Fix Version/s: 3.3
I added 3.3 as another fix version, since it was also committed to trunk.
param values in generator element should be trimmed during
HbmBinding
---------------------------------------------------------------------
Key: HHH-1916
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1916
Project: Hibernate3
Issue Type: Bug
Components: metamodel
Affects Versions: 3.1.3, 3.2.0.cr3
Environment: Oracle 10g, JDK 1.5.0_06, linux, hibernate 3.1.3
Reporter: Renaud Bruyeron
Assignee: Diego Pires Plentz
Fix For: 3.2.6, 3.3
Attachments: patch-Branch_3_1.txt, patch-Branch_3_2.txt
When using IDEs or tools like xdoclet to generate HBM files, it is easy to get XML like
this:
<generator class="sequence">
<param
name="sequence"
>
SEQ_SOME_SEQUENCE
</param>
</generator>
However the SchemaValidator barfs on this because the HbmBinder does not trim the
sequence name.
The fix is similar to the fix for HBX-423 I believe, i.e. in HbmBinder.java in method
makeIdentifier(...), use getTextTrim() instead of getText().
In 3.1 branch, this is at line 1902. On trunk this is line 1990.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: