En el BMP la persistencia la manejas t� por eso no hay ning�n problema
puedes colocarle lo que quieras como clave primaria, pero con CMP debe ser
un objeto, que es lo que espera recibir el contenedor, una variable int no
es un objeto sin embargo un Integer s�, intenta cambiar la definici�n de la
variable a Integer y vuelve a hacer el despliegue.
Un saludo

            Sonia
----- Original Message -----
From: Javier Fernandez <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 14, 2000 9:03 PM
Subject: Re: Problems with CMP,primaryKey Class and finder methods


> Muchas gracias por responder (y sobre todo en castellano).
> Tengo creada un Clase PrimaryKey donde defino una variable int, que es lo
> que voy a utilizar como clave primaria.
> Lo que me estra�a es que eso mismo echo com BMP no me da ningun problema,
y
> sin embargo aqui si.
>
>
> >From: Sonia <[EMAIL PROTECTED]>
> >Reply-To: A mailing list for Enterprise JavaBeans development
> ><[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: Problems with CMP,primaryKey Class and finder methods
> >Date: Mon, 14 Aug 2000 18:55:49 +0200
> >
> >Hola Javier, creo que el problema que tienes es que est�s colocando como
> >clave primaria de un EJB un tipo primitivo (int) y espera recibir un
> >objeto,
> >para solucionarlo tienes 2 opciones construirte una PKclass o bien
cambiar
> >ese atributo a Integer.
> >
> >Un saludo
> >
> >             Sonia Vega
> >
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to