dimanche 3 mai 2015

How to get the database snapsho of a Managed Entity just beore it is flushed

I wonder if Hibernate could retrieve the original field value of an Entity before updating it?

For example, having the entity

class StkItem {
     private int Qty;
}

After the user enters a new quantity, could I know what is the database value of Qty before saving the new value?

Aucun commentaire:

Enregistrer un commentaire