Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » [EMF] [Teneo] [Hibernate] Reference on NON Primary Key
[EMF] [Teneo] [Hibernate] Reference on NON Primary Key [message #815298] Wed, 07 March 2012 08:36 Go to next message
Nils Koerner is currently offline Nils Koerner
Messages: 5
Registered: March 2012
Junior Member
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-refrence in class "Adress". Does anybody know, how to do that??

Many thanks
Nils

[Updated on: Wed, 07 March 2012 08:48]

Report message to a moderator

Re: [EMF] [Teneo] [Hibernate] Reference on NON Primary Key [message #815890 is a reply to message #815298] Thu, 08 March 2012 01:47 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26000
Registered: July 2009
Senior Member
Nils,

Please use eclipse.tools.emf for questions about Teneo.


On 07/03/2012 2:36 PM, Nils Koerner wrote:
> 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-refrence in class "Adress".
> Does anybody knows, how to do that??
>
> Many thanks
> Nils
Previous Topic:Survey on Model Execution
Next Topic:New Eclipse User Group in New Jersey
Goto Forum:
  


Current Time: Fri Aug 22 15:42:55 EDT 2014

Powered by FUDForum. Page generated in 0.07243 seconds