java - How to add listener for database changes in Hibernate? -


how can add listener row changes insertion, updation, deletion in hibernate.

you can use jpa listeners @postupdate, @postpersist, @postremove (these portable across orm frameworks) , can here jpa spec.

the postpersist , postremove callback methods invoked entity after entity has been made persistent or removed. these callbacks invoked on entities these operations cascaded.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -