[hibernate-issues] [Hibernate-JIRA] Created: (EJB-340) Regression : OnLoad() callback is never invoked on an Interceptor in an EJB3 environment
Jose CHILLAN (JIRA)
noreply at atlassian.com
Mon Feb 25 10:26:33 EST 2008
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
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list