Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

Multiple Writeable Mappings Error

843830Jan 18 2008 — edited Mar 6 2008
Hi there

I am trying to set up a basic table with the following schema:
contact_table(key,PersonId,ContactId)

where PersonId and ContactId are both foreign keys from the Person table.


I am getting the following exception:

Exception [TOPLINK-48] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.DescriptorException
Exception Description: Multiple writable mappings exist for the field [contact_table.PersonId]. Only one may be defined as writable, all others must be specified read-only.
Mapping: oracle.toplink.essentials.mappings.OneToOneMapping[Person]
Descriptor: RelationalDescriptor(ejb.aglobalist.Contact --> [DatabaseTable(contact_table)])


Any ideas how to get around this? Marking one of them as read only is not applicable to my case.

Regards


- Vaughan Cross
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 3 2008
Added on Jan 18 2008
1 comment
130 views