> In other words, I have a table which doesn't have a unique primary
> key but rather a pair of fields that must be unique. How do I make
> a primary key object without having to add another field to the
> database?
The quick answer is yes, you can do this, and you probably want to check
out EJB
Title: RE: [JBoss-user] Non-unique Primary Keys
Sun's J2EE developer guide has a good section on this at http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Entity6.html#9455.
Paul
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of No
> Is it possible to create a primary key object for a bean
> where the PK object
> itself is not stored in the database, but its attributes are?
> In other words, I have a table which doesn't have a unique
> primary key but
> rather a pair of fields that must be unique. How do I make a
> prim
Is it possible to create a primary key object for a bean where the PK object
itself is not stored in the database, but its attributes are?
In other words, I have a table which doesn't have a unique primary key but
rather a pair of fields that must be unique. How do I make a primary key
object wit