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
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?
Retrieving data ...