Results 1 to 3 of 3

Thread: How can I set up AuditingEntityListener without orm.xml

  1. #1

    Default 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. #2
    Join Date
    Apr 2006
    Location
    Dresden, Germany
    Posts
    483

    Default

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

  3. #3

    Default

    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
  •