[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-4676) Any interceptor exception (RTE) should mark the tx for rollback

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Feb 22 16:24:47 EST 2010


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

Hardy Ferentschik resolved HHH-4676.
------------------------------------

    Resolution: Fixed

Ended up to change {{convert(RuntimeException e)}} to not only mark transactions for rollback for {{ConstraintViolationException}}s, but generally for all {{RuntimeException}}s. Tried initially to refactor the exception handling by getting rid of {{convert(HibernateException e)}} as suggested by the todo, but ended up with other problems. For now the problem is fixed in this simple way. In the future we might want to revisit the exception handling though.

> Any interceptor exception (RTE) should mark the tx for rollback
> ---------------------------------------------------------------
>
>                 Key: HHH-4676
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4676
>             Project: Hibernate Core
>          Issue Type: Sub-task
>          Components: entity-manager
>            Reporter: Emmanuel Bernard
>            Assignee: Hardy Ferentschik
>             Fix For: 3.5.0-CR-2
>
>


-- 
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