-
Mar 26th, 2012, 08:27 AM
#1
How can I set up AuditingEntityListener without orm.xml
Hi,
I'm using Spring Data JPA witout any XML (including an orm.xml). I'm working on some audit functionality, and the javadoc of the AuditingEntityListener states that this should be set up via orm.xml. Is there any other way of setting it up generically for all entities?
For the moment, I have: @EntityListeners(value = { AuditingEntityListener.class }) on each one.
Thanks.
Eugen.
-
Mar 27th, 2012, 05:36 PM
#2
Nope, unfortunately the JPA doesn't allow to register global EntityListeners other than through the orm.xml file.
-
Mar 28th, 2012, 08:44 AM
#3
Right, that's unfortunate. Thanks.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules