users@glassfish.java.net

Re: How to persist an entity with Composite primary key

From: <glassfish_at_javadesktop.org>
Date: Thu, 28 Jun 2007 23:30:59 PDT

-No i am not using pre-defined tables,
-i am using @GeneratedValue(strategy = GenerationType.IDENTITY)
-i am using the relation between the Asset and Resource because i want a unique key among other assets like Project, Task
So Resource, Project & Task inherit from Asset

i will try specifying column names using the @Column annotation in the PK class
hopes it run!!!
[Message sent by forum member 'bakr_awad' (bakr_awad)]

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