[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-1916) param values in generator element should be trimmed during HbmBinding

Diego Pires Plentz (JIRA) noreply at atlassian.com
Sun Oct 28 12:52:38 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Diego Pires Plentz resolved HHH-1916.
-------------------------------------

         Assignee: Diego Pires Plentz
       Resolution: Fixed
    Fix Version/s: 3.2.6

Fixed in 3.2 branch / 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
>
>         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