persistence@glassfish.java.net

Re: [Issue 66] New - Enterprise archives fail to load if MX1 and 1XM relationships used in entities within persistence archive

From: Shelly (Donna) McGowan <"Shelly>
Date: Wed, 02 Nov 2005 16:58:27 -0500

This issue is still occurring on the latest Glassfish builds (11/1).
There is no workaround that I'm aware of that resolves the issue except
to use last week's promoted build (10/26).

If there is a workaround, please reply to this alias.

Shelly





smcgowan_at_dev.java.net wrote On 10/30/05 17:01,:
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=66
> Issue #|66
> Summary|Enterprise archives fail to load if MX1 and 1XM relati
> |onships used in entities within persistence archive
> Component|glassfish
> Version|9.0pe
> Platform|Sun
> OS/Version|Solaris
> URL|
> Status|NEW
> Status whiteboard|
> Keywords|
> Resolution|
> Issue type|DEFECT
> Priority|P1
> Subcomponent|entity-persistence
> Assigned to|mvatkina
> Reported by|smcgowan
>
>
>
>
>
>
> ------- Additional comments from smcgowan_at_dev.java.net Sun Oct 30 22:01:42 +0000 2005 -------
> enterprise archives containing a persistence archive in which the entities have
> a ManyToOne or OneToMany relationship defined fail to load with a
> ValidationException as shown below. These mapping of the relationships are
> correctly defined and have worked till recently (10/27). The verifier
> highlights the same problem.
>
>
>
> Exception Description: The attribute [employees] in entity class [class
> com.sun.ts.tests.ejb30.persistence.query.apitests.Insurance] has
> a mappedBy value of [insurance] which does not exist in its owning entity class
> [class com.sun.ts.tests.ejb30.persistence.query.apitests.
> 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 051026Dev)): oracle.toplink.essentials.exceptions.ValidationException
> Exception Description: The attribute [employees] in entity class [class
> com.sun.ts.tests.ejb30.persistence.query.apitests.Insurance] has
> a mappedBy value of [insurance] which does not exist in its owning entity class
> [class com.sun.ts.tests.ejb30.persistence.query.apitests.
> EmbeddableSuperclass, this is invalid, and your attribute should reference the
> correct subclass.
> at
> oracle.toplink.essentials.exceptions.ValidationException.noMappedByAttributeFound(ValidationException.java:1019)
> at
> oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.getOwnerMapping(EJBAnnotationsProcessor.java:418)
> at
> oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.getOwnerMappingForeignKeys(EJBAnnotationsProcessor.java:430)
> at
> oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processOneToMany(EJBAnnotationsProcessor.java:1893)
> at
> oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processRelationshipAccessor(EJBAnnotationsProcessor.java:2236)
> at
> oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processRelatedClass(EJBAnnotationsProcessor.java:2207)
> at
> oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processORAnnotations(EJBAnnotationsProcessor.java:1989)
> at
> oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:299)
> at
> oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:
> 104)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: issues-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: issues-help_at_glassfish.dev.java.net
>