users@glassfish.java.net

Re: How to persist an entity with Composite primary key

From: <glassfish_at_javadesktop.org>
Date: Mon, 25 Jun 2007 12:14:41 PDT

Hi,

please post the complete definition for class C. Are the relationship fields annotated as UPDATABLE=false?

An example similar to your problem can be found in the JEE 5 tutorial example of order:

javaeetutorial5\examples\ejb\order\order-ejb\src\java\order\entity\LineItem

Please also see the discussion titled "@Embeddable class" that can be found under

https://glassfish.dev.java.net/servlets/SearchList?list=persistence&searchText=embeddable+class&defaultField=subject&Search=Search
[Message sent by forum member 'mf125085' (mf125085)]

http://forums.java.net/jive/thread.jspa?messageID=223841