Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » orm.xml equivalent for @JoinColumns
orm.xml equivalent for @JoinColumns [message #1408797] Sat, 16 August 2014 04:16
ritesh Mising name is currently offline ritesh Mising nameFriend
Messages: 2
Registered: August 2014
Junior Member
Hi.
I've got a embeddable Address class embedded in an PurchaseOrder (
Entity ) class. The address class references a Geography entity class
which has a compound primary key ( name , type ). In my ORM.xml file
I've got it modelled as


<entity class="order.PurchaseOrder">
<attributes>
<id name="id"></id>
<embedded name="billingAddress"> <!-- Of Type Address -->
<association-override name="province">
<!-- What goes here ? -->
</association-override>
</embedded>
</attributes>
</entity>

But I get this exception.

Exception [EclipseLink-93] (Eclipse Persistence Services -
2.5.1.v20130918-f2b9fc5):
org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The table [PURCHASEORDER] is not present in this
descriptor.
Descriptor: RelationalDescriptor(order.Geography -->
[DatabaseTable(GEOGRAPHY)])

In orm.xml how can I represent a Many-to-One relationship to a entity
which has a compound key ?
Previous Topic:Two way ( mutual )SSL with EclipseLink, JPA, and MongoDB
Next Topic:Eclipselink OptimisticLock causing deadlocks
Goto Forum:
  


Current Time: Mon Aug 03 15:16:53 GMT 2015

Powered by FUDForum. Page generated in 0.02655 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software