]
Emmanuel Bernard commented on EJB-340:
--------------------------------------
what was your original persistence.xml file?
Regression : OnLoad() callback is never invoked on an Interceptor 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
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: