Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OneToMany Mapping Exception - can anybody help

simramkumarSep 8 2009 — edited Sep 9 2009
SEVERE: >>java.lang.ExceptionInInitializerError: null
javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [dmsPU] failed.
Internal Exception: Exception [TOPLINK-7154] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The attribute [mPackagepartses] in entity class [class com.adityas.jpa.masters.part.MPart] has a mappedBy value of [part] which does not exist in its owning entity class [class com.adityas.jpa.masters.packageParts.MPackageparts]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
oracle.toplink.essentials.exceptions.EntityManagerSetupException:
Exception Description: predeploy for PersistenceUnit [dmsPU] failed.
Internal Exception: Exception [TOPLINK-7154] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The attribute [mPackagepartses] in entity class [class com.adityas.jpa.masters.part.MPart] has a mappedBy value of [part] which does not exist in its owning entity class [class com.adityas.jpa.masters.packageParts.MPackageparts]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
Local Exception Stack:
Exception [TOPLINK-7154] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The attribute [mPackagepartses] in entity class [class com.adityas.jpa.masters.part.MPart] has a mappedBy value of [part] which does not exist in its owning entity class [class com.adityas.jpa.masters.packageParts.MPackageparts]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
at oracle.toplink.essentials.exceptions.ValidationException.noMappedByAttributeFound(ValidationException.java:1118)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataValidator.throwNoMappedByAttributeFound(MetadataValidator.java:297)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.RelationshipAccessor.getOwningMapping(RelationshipAccessor.java:127)
...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2009
Added on Sep 8 2009
4 comments
2,345 views