[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-4919) DefaultMergeEventListener does not call Interceptor.instantiate() for a new persistent entity (Francesco Degrassi)

Gail Badner (JIRA) noreply at atlassian.com
Fri Mar 26 19:03:37 EDT 2010


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

Gail Badner resolved HHH-4919.
------------------------------

    Resolution: Fixed

Fixed in trunk and Branch_3_3.

Francesco, thanks for the fix and test case! :)

> DefaultMergeEventListener does not call Interceptor.instantiate() for a new persistent entity (Francesco Degrassi)
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HHH-4919
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4919
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.3.2, 3.5.0-CR-2
>         Environment: Hibernate 3.3.2-GA, HSQLDB and PostgreSQL
>            Reporter: Francesco Degrassi
>            Assignee: Gail Badner
>            Priority: Minor
>             Fix For: 3.3.x, 3.5.0.Next
>
>         Attachments: DefaultMergeEventListener.patch, hibernate-interceptor-bug.zip
>
>
> Interceptor.instantiate() method is not called when calling Session.merge on a new transient entity.
> This only affects persistent entities created during merge, Session.load() instead properly instantiate the entity using the interceptor method.
> It seems the problem lies in using the instantiate method of the persister instead of the one of EventSource, the attached patch seems to fix the problem.

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