openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grenier Nicolas" <Nicolas.Gren...@atosorigin.com>
Subject RE: Find by primary key does not return the real type of a record but instance of the type passed as parameter
Date Fri, 13 Oct 2006 07:34:51 GMT
Sorry, I forgot to join the root EJB you are right.
Please find them attached.

More information which could help: I'm using OpenJPA in my own application server context
meaning I use createContainerEntityManagerFactory method to get a factory and use a PersistenceUnitInfo
implementation. I've seen that I was not correctly enhancing all the classes (specifically
the child ones) and guess it could be the issue. I have corrected this problem, now I am sure
all my entity are all enhanced at runtime (I don't use tool enhancing); in order to do this
I force a loadClass on my class loader for all entity classes. But I've still the same issue.
Is it necessary to enhance all the classes at startup or could some classes be enhanced only
when they are first required ? 




-----Message d'origine-----
De : Abe White [mailto:awhite@bea.com] 
Envoyé : jeudi 12 octobre 2006 20:04
À : open-jpa-dev@incubator.apache.org; Grenier Nicolas
Objet : Re: Find by primary key does not return the real type of a record but instance of
the type passed as parameter

> My classes use the JOINED inheritance strategy. I use the default  
> basic mappings and a sequence generator inside the root class.
> I've joined the real classes, in fact the names of my classes are  
> as follow (I renamed them in my previous mail for simplicity):
>
> Channel <- CommerceChannel <- Networking | Peripherals | Components

These entities weren't included in the zip you sent.  Could you  
please send us these?  You can strip out the class bodies if you want  
-- all I'm really interested in is the annotations on the classes  
themselves, and the id field(s). 
  
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.




Mime
View raw message