[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-4854) Make constraint violation name extraction language neutral

Shaun Appleton (JIRA) noreply at atlassian.com
Mon Oct 10 12:00:25 EDT 2011


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

Shaun Appleton updated HHH-4854:
--------------------------------

    Attachment: HHH-4854.patch

> Make constraint violation name extraction language neutral
> ----------------------------------------------------------
>
>                 Key: HHH-4854
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4854
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.2.6
>         Environment: Oracle 8 or later
>            Reporter: Jonas Olsson
>         Attachments: HHH-4854.patch
>
>
> The ViolatedConstraintNameExtracter of Oracle8iDialect uses the following pattern for extracting the contraint violated:
>    return extractUsingTemplate( "constraint (", ") violated", sqle.getMessage() );
> and is highly error message language dependent. Changing to:
>    return extractUsingTemplate( "(", ")", sqle.getMessage() );
> would eliminate this while still getting the constraint name.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list