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
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">
<id name="id"></id>
<embedded name="billingAddress"> <!-- Of Type Address -->
<association-override name="province">
<!-- What goes here ? -->

But I get this exception.

Exception [EclipseLink-93] (Eclipse Persistence Services -
Exception Description: The table [PURCHASEORDER] is not present in this
Descriptor: RelationalDescriptor(order.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: Tue Oct 13 23:12:40 GMT 2015

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

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