It is very much possible to have any primary key with the only constraint
being that it should be serializable object.
So you can make a new class which contains all the columns which you want to
include in your pk (i understand that u mean a composite primary key).
and you can specify this class as primary key.
i hope it helps
ritu
> -----Original Message-----
> From: paul polli [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, September 13, 2000 6:14 PM
> To: [EMAIL PROTECTED]
> Subject: Primary Keys... PK class question
>
> I've see this question posted somewhere and I am
> actually interested in its answer:
>
> This question might have been asked, if there is an
> answer to it somewhere, please point me to it:
>
> First of all, is it possible to deploy an EJB (entity
> CMP/BMP) with a Primary key other than
> java.lang.String. The other one is: according to the
> spec we can only have one primary key field per entity
> bean (please correct me if I am wrong). What if I want
> to support multiple PKs (more than one field in a
> PK class). Would it work... How.
> Your help is appreciated.
>
> Paul
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".