Multiple Writeable Mappings Error
843830Jan 18 2008 — edited Mar 6 2008Hi 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