> First of all, is it possible to deploy an EJB (entity
> CMP/BMP) with a Primary key other than
> java.lang.String.

Yes (but your class/type need to be serializable)

> 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.

You can have many fields as your primary key, just define
them in your PrimaryKey class. Take a look at the spec again
and you'll find out that you can. The restriction in not one
field, but one class.

/kjetilhp

===========================================================================
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".

Reply via email to