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.
what was your original persistence.xml file?