> But shouldn't a primary key class be immutable? The only case I could
> think of it not being would be if the EJB server used a PK object pool
> which I don't think would be worth the trouble.
>
> Why would it not be immutable?
>
For CMP, it may not be immutable:

9.4.7.2 Primary key that maps to multiple fields in the entity bean class
The primary key class must be public, and must have a public constructor
with no parameters.
All fields in the primary key class must be declared as public.
The names of the fields in the primary key class must be a subset of the
names of the container-managed
fields. (This allows the container to extract the primary key fields from an
instance's container-managed
fields, and vice versa.)



- Avi
--
s/\be(\w+)/e-\1/g;

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