I have a requirement where I need to have multiple event listeners for the same event (PostInsert). Does anybody know if Hibernate 3 has the capability to register multiple event listeners? In hopes that it was already implemented, I tried using the SessionEventListenerConfig class to register two Listeners, but the last one won.
Specifically, I am trying to update a search index and a history table using two listeners on the PostInsert event. In the future, I may have other listeners that I need to put on the stack for this and other events, so if Hibernate doesn't have this functionality, I will develop it.
any ideas?
-Steve
|