Yes. I have an entity bean whose PK is a composite of two
container-managed-relationship fields.
The only problem I have is that Orion keeps switching the declared order
of the PK fields in the orion-ejb-jar.xml. It happens consistently
every time the file is redeployed. I have a partial=false finder method
which breaks every time this happens. Fortunately if I touch the
orion-ejb-jar.xml it will redeploy again and put the order back, but
it's bloody annoying :-)
I don't know if this problem is specific to CMR fields. It's logged as
bug #242. If anyone else is experiencing something like this, I'm sure
the added comments would be helpful :-)
Jeff Schnitzer
[EMAIL PROTECTED]
>-----Original Message-----
>From: Daniel Cardin [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 23, 2001 4:44 AM
>To: Orion-Interest
>Subject: RE: E_Roman e-commerce application(Mastering Java Beans)Wiley
>
>
>I have unsuccessfully tried to implement CMP using PK classes...
>Normal implementation, public fields, overriding of the hash value etc.
>
>Anyone got EJB 2.0, CMP, composite keys PK classes working ?
>
>Thanks,
>
>Daniel
>
>-----Message d'origine-----
>De : Juan Lorandi (Chile) [mailto:[EMAIL PROTECTED]]
>Envoyé : 21 janvier, 2001 13:22
>À : Orion-Interest
>Objet : RE: E_Roman e-commerce application(Mastering Java Beans)Wiley
>
>
>I believe your last assertion is false. Any entity bean that has a
>composed
>key (that is, its key maps to more than one field in the persistence)
>must
>have its own PK class
>
>check the specs
>
>JP
>
>-----Original Message-----
>From: Oglinda [mailto:[EMAIL PROTECTED]]
>Sent: Sábado, 20 de Enero de 2001 22:35
>To: Orion-Interest
>Subject: Re: E_Roman e-commerce application(Mastering Java Beans)Wiley
>
>
>At 01:31 AM 1/20/01 +0000, faisal wrote:
>>Hi
>>-Has any body tried to install Ed Roman e-commerce examples on Orion?.
>
>I am studying the book and I have played with some of the EJBs. There
>are
>some problems
>
>1. I assume the code was written with the EJB 1.0
>specifications because
>it
>is using some deprecated methods.
>2. The author was using WebLogic to deploy the beans and there
>are some
>major differences in the way you deploy the EJBs.
>
>> -Another question is it possible to do without creating a seperate
>class
>> for the primary key such as "customerPK.class"
>
>I am not an expert but from what I have noticed:
>* CMBs do not need a PK class
>* Bean-Managed persistence requires a PK class.
>
>Danut
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
>