Quote:
The idea is to implement a PreUpdateEventListener that creates a "backup" of the old object state before doing the actual update. The easiest approach is to use the "oldState" fields, supplied by the PreUpdateEvent to create this "historical" new entry
Trying to google it, trying to search all the forum inside here. Seems that many users already use these Pre and Post Update/Insert...Events. And I would like that, too. But I simply canĀ“t find any piece of source that shows how to "register" the listener in a session or what to do that fires this event!? I dont have any hibernate.cfg.xml, just a persistence.xml and I am working with the EntityManager. I would be glad if anyone can help me out :)