Hi, Your p.xml didn't post correctly... I'm curious what the NONE setting is for...
At this point, nothing else is jumping out at me... Kevin On Tue, Oct 14, 2014 at 4:30 AM, <goues...@orange.fr> wrote: > Hi > > One of the classes seems to be parsed twice according to the trace: > 718 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Loading metadata > for "class com.******.*****.ejbs.utils.MultiLangString" under mode > "[META][QUERY]". > 718 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Parsing class > "com.******.*****.ejbs.utils.MultiLangString". > 718 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Parsing package > "com.******.*****.ejbs.utils.MultiLangString". > 718 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Generating default > metadata for type "com.******.*****.ejbs.utils.MultiLangString". > 718 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Using reflection > for metadata generation. > 733 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Set > persistence-capable superclass of > "com.******.*****.ejbs.utils.MultiLangString" to "null". > 733 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Resolving embedded > metadata for "com.******.*****.ejbs.utils.MultiLangString@2102741454". > 733 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Set > persistence-capable superclass of > "com.******.*****.ejbs.utils.MultiLangString" to "null". > 733 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Resolving metadata > for "com.******.*****.ejbs.utils.MultiLangString@1784722346". > 733 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Resolving field > "com.******.*****.ejbs.utils.multilangstr...@1784722346.id". > 733 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Resolving field > "com.******.*****.ejbs.utils.multilangstr...@1784722346.lang". > 733 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Resolving field > "com.******.*****.ejbs.utils.multilangstr...@1784722346.text". > 733 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Resolving field > "com.******.*****.ejbs.utils.multilangstr...@2102741454.id". > 733 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Resolving field > "com.******.*****.ejbs.utils.multilangstr...@2102741454.lang". > 733 RCSDMWebServicesPU TRACE [main] openjpa.MetaData - Resolving field > "com.******.*****.ejbs.utils.multilangstr...@2102741454.text". > > com.******.*****.ejbs.utils.MultiLangString uses the annotation > @Embeddable. > > This is the only suspicious thing I've found in the trace. > > This is my persistence.xml file: > > <?xml version="1.0" encoding="UTF-8"?> > > > > > > org.apache.openjpa.persistence.PersistenceProviderImpl > > java:/*****WebServicesDS > com.******.*****.ejbs.utils.MultiLangString > NONE > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Message du 14/10/14 00:14 > > De : "Kevin Sutter" > > A : users@openjpa.apache.org, goues...@orange.fr > > Copie à : > > Objet : Re: javax.persistence.EntityListeners is never called > > > > Hi, > > The complete trace can be turned on via this property in your p.xml: > > > > > > > > Good luck, > > Kevin > > > > On Mon, Oct 13, 2014 at 1:01 PM, wrote: > > > > > Hi > > > > > > I use Apache OpenEJB 4.7.1 (probably OpenJPA 2.2 or 2.3). I have > looked at > > > the logs and I have already done my best to force the persistence of > all > > > entity classes including those Hibernate was able to discover alone, > for > > > example the class using @Embeddable. As I'm currently not at work, I > can't > > > post the persistence.xml but I'll do it tomorrow. What should I turn > on to > > > get some more trace? Thank you for your help. > > > > > > > > > > > > > > > > Message du 13/10/14 19:07 > > > > De : "Kevin Sutter" > > > > A : users@openjpa.apache.org, goues...@orange.fr > > > > Copie à : > > > > Objet : Re: javax.persistence.EntityListeners is never called > > > > > > > > Hi, > > > > EntityListeners should work just fine with OpenJPA. What version of > > > > OpenJPA are you using? The basic support is documented here: > > > > > > > > http://ci.apache.org/projects/openjpa/trunk/docbook/manual.html#jpa_overview_pc_callbacks > > > > > > > > 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. > > > > > > > > Kevin > > > > > > > > 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. > > > > > > > > > > > > > > >