Dave Smith wrote:
>
> Hi
>
> I have just started using JOnAs 2.1.1 and used newbean to generate an
> entity CMP bean with integer PK.
>
> When I run GenIC, the source code generated contains a bug:
>
> java.lang.Integer pk = new java.lang.Integer();
> pk = field3;
>
> Unfortunately Integer does not have an empty constructor so this claps
> out.
>
Hi,
First of all, thank you very much for your interest for JOnAS.
I read again the EJB v1.1, and there is effectively a bug in JOnAS.
Indeed, the primary key class must have a public constructor
with no parameters only in the case of primary key maps to multiple
fields
in the entity bean class.
I will fix this bug.
Kind regards.
Hélène.
--
-=- 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".