0 Replies Latest reply on Nov 8, 2014 1:43 PM by Dishant Anand

    PreInsert event Listener Hibernate

    Dishant Anand Newbie

      Well while working with hibernate , I had a use case where i need to implement PreInsert Hibernate Event Listener.


      But the problem with Insert Event Listener,whatever value you update on object onPrePersist method  is reflected as a separate update sql query in logs

      that means.


      First it will fire an insert query on the object and then it update it with the value


      Is there any alternative to hibernate's PrePersistEventListener.? or any solution?