[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-1916) param values in generator element should be trimmed during HbmBinding
Renaud Bruyeron (JIRA)
noreply at atlassian.com
Fri Oct 6 07:55:24 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1916?page=all ]
Renaud Bruyeron updated HHH-1916:
---------------------------------
Attachment: patch-Branch_3_2.txt
Here we go - the patch for the 3_2 branch - identical except for the line offsets.
Please please, could this make it in? :)
> 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
> Type: Bug
> Components: metamodel
> Versions: 3.1.3, 3.2.0.cr3
> Environment: Oracle 10g, JDK 1.5.0_06, linux, hibernate 3.1.3
> Reporter: Renaud Bruyeron
> 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:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list