Hibernate Envers: How To Query Data From Your Audit Log

preview_player
Показать описание
This is my second video about Hibernate Envers. In the previous one, I showed you how to add Envers to your project, let it document all changes of your audited entities and perform basic queries to retrieve data from your log.
The first video showed you everything you need to get started with Hibernate Envers. But if you want to use it in a real project, you will quickly recognize that you need more advanced query capabilities. Envers provides you with a powerful query API that allows you to define these kinds of queries easily. I show you how to do that in this video.

If you like this video, please give me your thumbs up and share it with your friends and co-workers.

Like my channel? Subscribe!

Join the free Member Library:

Want to connect with me?
#Hibernate #Envers #Logging
Рекомендации по теме
Комментарии
Автор

I want to ask about one thing, lets say every book has multiple publishers, if I want to get a certain revision in time and get the state of the publishers in that revision, is that possible with this API? 

Appreciate your help!

danidaryaweesh
Автор

Hello, can we join the revision of an audit ot the entity using onetoone relationshiop, as i want each record of audit to be linked to some other tables records

Sarathchand
Автор

My AuditQuery fails when I try to fetch revisions of Entity who has unidirectional one to many & one to one relation with other entities,
Is there any way to store revision of all such fields with audited entity on create or update or delete operation. so that while fetching the revisions of enitity all details of relation fields are populate.

pradeepkhutwad
Автор

In the above video you showed
Book b = prepareBookDate();
can you show the prepareBookDate method or can you comment github source code link

adithyanamada
Автор

Is there somewhere source code available from "Hibernate Envers" topics?

jacekkazmierczak