Vikas Tiwari
Vikas Tiwari

Reputation: 537

Hibernate Event Listeners PreUpdate vs PreInsert

What is the difference between the PreInsertEventListener and the PreUpdateEventListener? Where do I read about the various EventListeners and what they do ?

Upvotes: 1

Views: 522

Answers (1)

Giorgi Tsiklauri
Giorgi Tsiklauri

Reputation: 11120

PreInsertEventListener is called before inserting an item in the datastore.

PreUpdateEventListener is called before updating the datastore.

Some of the Event Listeners can be found from here.

Upvotes: 1

Related Questions