xuzhf / crmdipity

Automatically exported from code.google.com/p/crmdipity
0 stars 0 forks source link

Add sample Entity Listeners #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add sample Entity Listeners

JPA provides a mechanism to designate callback methods for entity life cycle 
events (e.g. persist, load, update, remove).

These can be used to perform common tasks like logging and auditing (similar to 
database triggers). 

Original issue reported on code.google.com by rob.ferg...@gtempaccount.com on 20 Dec 2010 at 5:20

GoogleCodeExporter commented 9 years ago
Fixed in 0.4.0

Added support for Versioning via BaseEntity.java and sample listeners 
(@prePersist, PreUpdate) in BaseEntityListener.java.

// e.g. public class Account extends BaseEntity implements Serializable {

Original comment by rob.ferg...@gtempaccount.com on 18 Jan 2011 at 12:53