orm.xml equivalent for @JoinColumns [message #1408797] |
Sat, 16 August 2014 04:16 |
ritesh Mising name 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 ?
|
|
|
Powered by
FUDForum. Page generated in 0.01450 seconds