-1

I was wondering how I could keep track of what's going on with entities, like who created the user, when, when was it last accessed ?

More than that, I would also like to know about previous changes. to keep it simple I'd like to keep track of every changes.

Is there a solution for that ?

edit :

For Hibernate : we can use Envers that seems to cover the needs

Seb
  • 3,602
  • 8
  • 36
  • 52

1 Answers1

1

You may want to check out the Hibernate ORM Envers project. This enables easy auditing/versioning of persistent classes.

Regarding, there something like Envers for other JPA implementations

There might be some but, frankly, I am aware of other alternatives. As auditing is not part JPA spec, it is up to the implementors.

A quick search has yielded following link EclipseLink HistoryPolicy which looks similar to Envers but for eclipseLink.