Hi Ryan,
It seems that in your example the primary key is mapped to a single
field
of the entity bean class and that the type of this field is an int.
An entity bean's primary key must be a class, and not a primitive type
such int, float, ....
Cf Spec EJB 1.1 chapter 9.2.9 (p 127) and chapter 16.5 (p 254).
Hope this help.
Kind regards.
H�l�ne.
Ryan Eastmond wrote:
>
> Hi guys,
>
> I've recently started Jonas and went straight to this jdk1.2 version.
> I've got previous experience of developing beans, deploying, etc with
> respect to the EJB1.1 specification.
> My question is :-
>
> When I used the GenIC to generate the container classes I get several
> error messages indicating that several incompatible types
> in various methods. main error message being :
> Incompatible type for method. Can't convert (entitybean PK class) to
> int.
> My primary key fields are mostly int and everything is done according to
> the specs of EJB1.1 The methods that are generating
> these errors are mostly:-
>
> pStmt.setInt(1, pk);
> pk = eb.attribId;
>
> Can you guys give me a reason why the generated files would give such an
> error.
> thanks in advance for your assistance.
> Ryan.
>
> ----
> 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".
--
-=- 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
_______________________________________________________________
----
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".