users@glassfish.java.net

JPA Entity that has no primary key

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Feb 2010 14:38:42 PST

I have a table in that doesn't contain any primary key. There are no unique constraints on the table. Constraints-wise, it just contains few columns that has 'not null' requirements. This table is controlled by other application group and as such I can't modify the table definitions.
I found in some groups that JPA doesn't support entities that has no primary keys. Is this true?
How should I handle this kind of entity? I am using BEA weblogic server10.0 & Eclipse for development.

Thanks in advance.
[Message sent by forum member 'mac1sam' (mac1sam_at_yahoo.com)]

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