Envers preview 2: versioning relations

You can now download a second preview version of the Envers library!

As a quick reminder, the library enables you to easily version your JPA entities, by simply annotating their properties with @Versioned; it works as an extension to Hibernate and Hibernate Entity Manager.

In this release, in addition to versioning simple properties, like strings, numbers, dates, you can also version the most common type of relations, namely:

  • @OneToOne
  • @OneToOne(mappedBy="...")
  • @ManyToOne
  • @OneToMany(mappedBy="...")

Envers has now a growing test suite, which already helped to eliminate some bugs. Moreover, here you will find a description on how to generate a database schema of your entities together with the versions tables.

If you’d like to share your opinion, you can now use the forum. Waiting for your posts there :).