Announcement Announcement Module
Collapse
No announcement yet.
How can I set up AuditingEntityListener without orm.xml Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    Nope, unfortunately the JPA doesn't allow to register global EntityListeners other than through the orm.xml file.

    Comment


    • #3
      Right, that's unfortunate. Thanks.

      Comment

      Working...
      X