Hi,
A public default constructor must exist in case of the primary key
maps to multiple fields in the entity bean class.
In case of primary key maps to a single field in the entity bean class,
a public default constructor is not mandatory.
There was a bug in previous versions of JOnAS about the second case.
The fix is available from the version 2.2.
Kind regards.
Hélène.
Terence Jacyno wrote:
>
> Hi.
>
> I tried using the class java.lang.Integer as primary key when developing
> an entity bean with CMP, but GenIC doesn't seem to accept this. In the
> programmer's guide, one of the requirements for PK classes of CMP EJB is
> that a public default constructor must exist, which is not the case of
> Integer. The same is not true with respect to WebLogic. I was
> wondering if the requirement of a default constructor is specific to
> JOnAS, or is this behavior in the EJB specs. Thanks.
>
--
-=- Hélène JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www.evidian.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.objectweb.org
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".