openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Sutter <>
Subject Re: javax.persistence.EntityListeners is never called
Date Mon, 13 Oct 2014 17:06:45 GMT
EntityListeners should work just fine with OpenJPA.  What version of
OpenJPA are you using?  The basic support is documented here:

Are there any other messages in the logs that indicate an issue?  Have you
tried turning on Trace to ensure that normal persistence processing is
happening?  Can you post your p.xml?  Like I mentioned, this should all
just work.  We'll need a bit more context to help figure out the problem.


On Mon, Oct 13, 2014 at 10:56 AM, <> wrote:

> Hello
> I use javax.persistence.EntityListeners. The persistent classes of the
> entities are correctly added into persistence.xml. My test case works
> correctly with Hibernate and OpenJPA except that the annotated methods
> (with @PostLoad, @PreUpdate, @PrePersist and @PostRemove) are never called
> by OpenJPA whereas they are called by Hibernate. Am I missing anything
> obvious? Best regards.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message