Hibernate Tips: How to Increase the Version of the Parent Entity When Updating a Child Entity
|

Hibernate Tips: How to Increase the Version of the Parent Entity When Updating a Child Entity

Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question for a future Hibernate Tip, please leave a comment below. Question: I’m using optimistic locking to avoid concurrent modifications of the same entity. But Hibernate’s versioning mechanism ignores changes on…

How to Implement Conditional Auditing with Hibernate Envers

How to Implement Conditional Auditing with Hibernate Envers

Hibernate Envers automatically integrates with Hibernate ORM and provides a powerful and easy to use solution to write an audit log. As I described in a previous post, you just need to add Envers to your classpath and annotate your entities with @Audited. It will then document all insert, update and delete operations and you…

Thoughts on Java Report November 2017: Even More Conferences and 1 Year Anniversary

Thoughts on Java Report November 2017: Even More Conferences and 1 Year Anniversary

It has been 2 busy months since the last Thoughts on Java Report. During that time, I celebrated my 1 year anniversary of becoming a freelancer, the Thoughts on Java YouTube channel reached 2000 subscribers, and I spoke at 6 events in 3 different countries. I had a great time 🙂 In total, I gave…