Maven -> Hibernate -> ENVERS -> JPA Is this possible?
I'm using Maven to create my project, after creating my BD Schema using POJOs I wanted to implement Audit Trail to my project, that's when I found out about ENVERS.
Everything is fine, except that I want to know Who and When someone created or edited something, I've found lots and lots of tutorials on the net for this.
After creating my CustomRevisionEntity and my CustomRevisionListener and banging my head against the table for 1000 times why my project still used DefaultRevisionEntity, I found that I need to create a JPA Entity for CustomRevisionEntity and CustomRevisionListener.
I've been looking @ this tutorial Thinking In Software: Auditing entities with Hibernate JPA
How can I create a JPA Entity with my current Maven project? Do I need to go to Project->Properties->Maven->Project Facets->Configuration->Minimal JPA 2.0 Configuration->Select JPA from checkboxes->And then I can create a CustomRevisionEntity and a CustomRevisionListener as JPA Entity?
I forgot I'm using SWING but eventually I'll use something like Struts2 for web.
Can anyone confirm that this is the way to go?
Thank you for your time.