[EMAIL PROTECTED] wrote:

> I just made an entity bean (CMP) that maps a database table that has a single field 
>PK of Type INTEGER. In the ejb-jar.xml I
> declared this as <prim-key-class>int</prim-key-class>. But GenIC now tells me, that 
>it cannot find a primary key class named
> int. Do I really have to declare a primary key class for java primitives?

Java primitives MUST not be used as primary key class (see JOnAS doc and
EJB spec). You should use a class, in your case:
<prim-key-class>java.lang.Integer</prim-key-class>

Regards,

Fran�ois

--
==================================================================
Francois EXERTIER         Evidian (Groupe Bull)
     1, rue de Provence,  BP 208,  38432 Echirolles cedex, FRANCE
     mailto:[EMAIL PROTECTED]
     http://www.evidian.com/jonas   http://www.objectweb.org/jonas
     Tel: +33 (0)4 76 29 71 51  -  Fax:   +33 (0)4 76 29 76 00
==================================================================


----
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".

Reply via email to