[
http://opensource.atlassian.com/projects/hibernate/browse/EJB-340?page=co...
]
Emmanuel Bernard updated EJB-340:
---------------------------------
Summary: onLoad() callback from Interceptor and onLoad() from Lifecycle are never
invoked in an EJB3 environment (was: Regression : OnLoad() callback is never invoked on
an Interceptor in an EJB3 environment)
onLoad() callback from Interceptor and onLoad() from Lifecycle are
never invoked in an EJB3 environment
-------------------------------------------------------------------------------------------------------
Key: EJB-340
URL:
http://opensource.atlassian.com/projects/hibernate/browse/EJB-340
Project: Hibernate Entity Manager
Issue Type: Bug
Affects Versions: 3.3.2.Beta3
Reporter: Jose CHILLAN
Fix For: 3.3.2.ga
Original Estimate: 15 minutes
Remaining Estimate: 15 minutes
The method onLoad() is not inovked on an EJB3 interceptor, whereas this works in a plain
Hibernate environment.
It seems that the default PreLoadEventListener that is registered by the
EventListenerConfiguration
doesn't take the interceptor into accound.
A workaround is to modify the configuration to add the default plain Hibernate listener
in the persistence.xml:
<persistence ...>
<persistence-unit>
...
<properties>
<property name="hibernate.ejb.event.pre-load"
value="org.hibernate.secure.JACCPreLoadEventListener,
org.hibernate.event.def.DefaultPreLoadEventListener" />
</properties>
</persistence-unit>
</persistence>
But this would be great to have this by default.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira