How to implement change log with JPA?

I have an entity class associated with JPA, and I have one object that must be registered in its properties. Does JPA provide any way to address this kind of requirement?

+5
source share
2 answers

Cm,

http://en.wikibooks.org/wiki/Java_Persistence/Advanced_Topics#History

and

http://en.wikibooks.org/wiki/Java_Persistence/Auditing_and_Security

If you use EclipseLink, it includes historical support. You can enable the class to track all of its changes in a separate history table.

+2
source

Hibernate JPA, Hibernate-Envers.

Spring, Hades Spring -Data-JPA.

(Envers Hades/ Spring -Data-JPA) . Hibernate Envers , Hades/Spring -Data-JPA ( Hades, ).

/ - , . @PostUpdate co.

+4

All Articles