[EMF] [Teneo] [Hibernate] Reference on NON Primary Key [message #815899] |
Thu, 08 March 2012 02:12  |
Eclipse User |
|
|
|
Hallo,
i have 2 EClasses:
Class Person
- ID = PrimaryKey
- Name
- otherUniqueID
Class Adress
- ID = PrimaryKey
- person = Refrence to Person.otherUniqueID
- street
- city
I use a Ecore-Model with Teneo and Hibernate. The problem is, that i dont know the annotation for the person-reference in class "Adress". Does anybody know, how to do that??
Many thanks
Nils
|
|
|
|
|
|
|
|
|
Re: [EMF] [Teneo] [Hibernate] Reference on NON Primary Key [message #819120 is a reply to message #819040] |
Mon, 12 March 2012 10:18  |
Eclipse User |
|
|
|
Okay, how does the generated hbm look like (you can check it through dataStore.getMappingXML()).
gr. Martin
On 03/12/2012 01:15 PM, Nils Koerner wrote:
> The database-field with the specified name (for example "key111") is created, but the reference is still on the primary
> key.
>
> greetings,
> Nils
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.11445 seconds