Re: The id class specified by type does not match the primary key fields of the class
Hello Rick, Ty for your answer. I tried to update my entities like mentionned in your link (Not same entities inside my first post but same problem): Entity with embeddedId Embeddable class And persistence.xml But always got this log message: Are there any solutions to fix it ? Ty ! (I'm copying this reply to SO) -- View this message in context: http://openjpa.208410.n2.nabble.com/The-id-class-specified-by-type-does-not-match-the-primary-key-fields-of-the-class-tp7586109p7586114.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: The id class specified by type does not match the primary key fields of the class
Rick, Sorry, I failed my copy/paste, this is the whole exception: In http://openjpa.markmail.org/thread/bqjomb4mtqj66p2p#query:+page:1+mid:zcxl7qjlqfgv3iwi+state:results The author said openjpa.jdbc.SynchronizeMappings=validate did the trick! so I tried to change it in my persistence.xml file but without good results :( I also read : The fields of a compound ID class should be one of the following types : any Java primitive type; any primitive wrapper type; java.lang.String; java.util.Date;java.sql.Date. That why I tried to change my entities but same problem. Thanks for your help -- View this message in context: http://openjpa.208410.n2.nabble.com/The-id-class-specified-by-type-does-not-match-the-primary-key-fields-of-the-class-tp7586109p7586116.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
The id class specified by type does not match the primary key fields of the class
Hello everybody ! I am faced a migrate project problem. I've got a very very very old java ee project that currently runs on jboss 4 server. I'm trying to migrate it on a fresh apache tomee installation. Entity classes was coded like this: PK class Box class Actually this is works on the jboss 4 server installation but when i'm trying to start it on apache tomee I got the following error : I need to keep the @ManyToOne relation inside the PK class. Does someone know an issue in order to help me ? Tanks a lot :) -- View this message in context: http://openjpa.208410.n2.nabble.com/The-id-class-specified-by-type-does-not-match-the-primary-key-fields-of-the-class-tp7586109.html Sent from the OpenJPA Users mailing list archive at Nabble.com.