Vlada Matena wrote:
>
> The primary key class MyPK defined below is legal in EJB 1.1. However,
> the "value" field must be defined as "public" in the class.
>
> ----- Original Message -----
> From: "Evan Ireland" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 25, 2000 3:25 PM
> Subject: Re: EJB spec does not permit numbers as primary keys
>
> > public class MyPK
> > {
> >     int value;
> >
> >     MyPK() { ... }
> >
> >     // hashCode and equals ...
> > }

Thanks for the correction. I didn't mean to promote package-private fields in
key classes.
________________________________________________________________________________

Evan Ireland              Sybase EAServer Engineering        [EMAIL PROTECTED]
                            Wellington, New Zealand               +64 4 934-5856

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