On 21 Apr 00, at 11:57, Jonathan K. Weedon wrote:

Hi Jonathan,


> b) For CMP, primary keys must have a default constructor.
> This precludes using "java.lang.Integer" as a primary key
> type.

I think this requirement is only for a primary key that maps to
multiple fields in the entity bean class.  Clearly, java.lang.Integer
falls under the category of primary keys that map to single fields in
the entity bean class.  See 9.4.7.1 vs. 9.4.7.2.

>
> c) Primary Key wrapper classes for single field primary
> keys are deprecated in EJB 1.1.  This precludes using a
> class FooPK as a primary key type.

Where is this deprecated?  I was unable to find it in the
specification, although I may have missed it.  Could you point me
to the section?

>
> Thus, according to the EJB specification, there is no way
> to have a number as a primary key type.

I don't think this is the specification's intent.

-Dan

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