Envers

A library that aims to enable easy versioning of persistent JPA classes.
Download

Envers Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Adam Warski
  • Publisher web site:
  • http://www.jboss.org/envers/

Envers Tags


Envers Description

A library that aims to enable easy versioning of persistent JPA classes. Envers is a library that aims to enable easy versioning of persistent JPA classes. All that you have to do is annotate your persistent class or some of its properties, that you want to version, with @Versioned. For each versioned entity, a table will be created, which will hold the history of changes made to the entity. You can then retrieve and query historical data without much effort.Similarly to Subversion, the library has a concept of revisions. Basically, one transaction commit is one revision (unless the transaction didn't modify any versioned entities). As the revisions are global, having a revision number, you can query for various entities at that revision, retrieving a (partial) view of the database at that revision.The library works with Hibernate and Hibernate Entity Manager (see hibernate.org). For the versioning to work properly, the entities must have immutable unique identifiers (primary keys). You can use Envers wherever Hibernate works: standalone, inside JBoss AS, with JBoss Seam or Spring.In the future, the library will support versioning of arbitrary relationships. It will also include support for "revisioning groups", which will de-centralize the revisions table, if there are independend groups of entities versioned. Another important space-saving feature will be the possibility to store only diffs between revisions, not whole properties (this of course applies only to strings and byte arrays). Here are some key features of "Envers": · versioning of basic properties (strings, integers, longs...) · versioning of embedded components, which are composed of basic properties · versioning of classes with simple, composite and embedded ids · versioning of one-to-one uni- (only on the owning side) and bi-directional relations · versioning of one-to-many uni- (only on the owning side) and bi-directional relations · support for secondary tables · logging data for each revision using a "revision entity" · querying historical data Requirements: · Java Runtime Environment What's New in This Release: · It is mainly a bugfix release, but there is also one new feature. You can now access the current revision entity directly using AuditReader, without the need to use a revisions listener.


Envers Related Software