I use composite keys successfully. These keys are based on @id of @Entities which have simple types (int, String, Date, e.t.c.). The problem is that I can't create compostie key klass, because one of it's fields is @Entity with composite key. But It's not simple type, like int or long or String or Date.
I don't know what to do in this case. Pinaki Poddar wrote: > > Hi, > For multi-level derived identity, please see the discussion and examples > provided with [1]. > OpenJPA manual describes the ground rules [2]. > > > [1] https://issues.apache.org/jira/browse/OPENJPA-207 > [2] > http://openjpa.apache.org/builds/1.2.0/apache-openjpa-1.2.0/docs/manual/manual.html#ref_guide_pc_oid_entitypk > > -- View this message in context: http://n2.nabble.com/Enterprise-JavaBeans---HowTo%3A-construct-Composite-key-using-other-composite-key--tp788926p789721.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
