2 Replies Latest reply on Oct 2, 2009 12:12 PM by aditya bora

    EntityManager beforePersist, beforeMerge, beforeRemove

    aditya bora Newbie

      Hello Friends,

      I am trying to implement auditing feature in my application. This is something which will keep track of all insertion, updation and deletion activities in my application.

      I am using Hiberate in my application.

      I know this can be handleled from datbase side with the help of table level BEFORE triggers. But due some reasons i've to avoid this.

      So what left is i've to handle this though my code. What I am expecting here is some kind of listeneres which will be called when entityManager.persist/merge/refresh methods are called. Is it possible?

      Please... Please guide me..

      Thankx in Advance,