[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6910) Interceptor does not allow to work on components

Rafal Figas (JIRA) noreply at atlassian.com
Tue Dec 20 16:02:19 EST 2011


Interceptor does not allow to work on components
------------------------------------------------

                 Key: HHH-6910
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6910
             Project: Hibernate Core
          Issue Type: Bug
    Affects Versions: 3.6.7
            Reporter: Rafal Figas


When interceptor onLoad is called on entity that has components they are not yet retrieved from persistent state (fields are null). Interceptor onLoad is not called when components are loaded. This means that there is no way to do anything about the components on load - e.g. restore some transient fields. I believe that the best would be calling onLoad for components as well, because theoretically they may be loaded lazily.

Workaround: use getter od the "component" field to do what is necessary. However this is in contradiction to transparent persistence concept, because influences POJO.


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