Adam Warski

22 Apr 2008

Envers preview 2: versioning relations

envers
java
hibernate

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 :).

Adam

comments powered by Disqus

Any questions?

Can’t find the answer you’re looking for?