Halas, Miroslav wrote:
>
> Hi,
>
> I have a primary key class for EntityBean, which contains several public and
> protected static member variables (numbers and texts used as constants) all
> marked as transient. When I use GenIC, I get an error:
>
> GenIC ERROR: The field [name of the public/protected static final member
> variable] of the Primary Key class is not a container-managed field of the
> Entity Bean
>
> This code works with Weblogic 4.5.1 so I am wondering if it is a bug in
> Jonas?
>
Hi,
We can find in the specification of EJB version 1.0 chapter 9.10.7,
and in the specification of EJB version 1.1 chapter 9.4.7.2,
the following sentences about the primary key class of an entity
bean with container-managed persistence :
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.)
That's why we think it's not a bug in JOnAS.
Are you agree ?
Best regards.
H�l�ne.
--
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www-frec.bull.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.bullsoft.com/ejb
_______________________________________________________________