Hi,
I have an application running with some properties in my persistence.xml similar to:
<properties> <property name="hibernate.hbm2ddl.auto" value="update"/> <property name="hibernate.ejb.event.post-insert" value="MyEventListener"/> <property name="hibernate.ejb.event.post-update" value="MyEventListener"/> </properties>
this works. But unfortunately 2 instances of MyEventListener are created. Is there any way to get the same instance to listen to several event types? Maybe a way to configure a factory method for my EventListener?
thanks in advance,
Dirk
|