Skip to content

vinicius-fernandes/hibernate-envers-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hibernate-envers-sample

An example of how to use Hibernate Envers.

Basically we need the AuditConfigClass, add @Audited to the desired entities and look at the documentation to find out how to create our queries.

Test requests:

Create

curl -d '{"name":"value","childs":[{"name":"batatinha"}]}' -H "Content-Type: application/json" -X POST http://localhost:8080/test

Update

curl -d '{"name":"value","id":"1","childs":[{"name":"batatinha2","id":"1"}]}' -H "Content-Type: application/json" -X PUT http://localhost:8080/test

Obtain the versions

curl  http://localhost:8080/test/audit

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages