persistence@glassfish.java.net

Re: ManyToOne/OneToMany Relationships are Broken in 10/27 PE Builds

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Fri, 28 Oct 2005 08:19:41 +0530

Hi Shelly,
   Please do me a favor. Would you mind running
verifier <ear name> against that application and see if it catches or not.

Thanks,
Sahoo
Shelly (Donna) McGowan wrote:

>
>
>
>>While performing a CTS run tonight using the latest 10/27 build, I
>>discovered that applications containing ManyToOne, OneToMany
>>relationships fail to load. OneToOne and ManyToMany seem OK.
>>
>>The same tests bundles successfully run using a 10/24 build.
>>
>>
>>Shelly
>>
>>
>>[#|2005-10-27T18:08:41.628-0400|WARNING|sun-appserver-pe9.0|javax.enterprise.system.core.classloading|_ThreadID=12;_ThreadName=
>>SelectorThread-4848;|
>>Exception Description: The attribute [orders] in entity class [class
>>com.sun.ts.tests.ejb30.persistence.query.language.schema30
>>.Customer] has a mappedBy value of [customer] which does not exist in
>>its owning entity class [class com.sun.ts.tests.ejb30.persistence
>>EmbeddableSuperclass, this is invalid, and your attribute should
>>reference the correct subclass.
>>Local Exception Stack:
>>Exception [TOPLINK-7154] (Oracle TopLink Essentials - 10g release 4
>>(10.1.4.0.0) (Build 051023Dev)): oracle.toplink.essentials.
>>exceptions.ValidationException
>>Exception Description: The attribute [orders] in entity class [class
>>com.sun.ts.tests.ejb30.persistence.query.language.schema30
>>Customer] has a mappedBy value of [customer] which does not exist in its
>>owning entity class [class com.sun.ts.tests.ejb30.persistence
>>EmbeddableSuperclass, this is invalid, and your attribute should
>> reference the correct subclass.
>> at
>>oracle.toplink.essentials.exceptions.ValidationException.noMappedByAttributeFound(ValidationException.java:1020)
>> at
>>oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.getOwnerMapping(EJBAnnotationsProcessor.java:
>>416)
>> at
>>oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.getOwnerMappingForeignKeys(EJBAnnotationsProc
>>esso
>>r.java:428)
>> at
>>oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processOneToMany(EJBAnnotationsProcessor.java
>>:188
>>1)
>> at
>>oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processRelationshipAccessor(EJBAnnotationsPro
>>cess
>>or.java:2224)
>> at
>>oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processRelatedClass(EJBAnnotationsProcessor.j
>>ava:
>>2195)
>> at
>>oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processORAnnotations(EJBAnnotationsProcessor.
>>java
>>:1977)
>> at
>>oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:396)
>> at
>>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFac
>>tory
>>Provider.java:133)
>> at
>>com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:170)
>>
>>
>>
>>
>
>
>