Skip to main content



      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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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:[EMF][CDO][Hibernate] ClassCastException org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.Hibe
Goto Forum:
  


Current Time: Sun Jul 13 20:39:59 EDT 2025

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

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

Back to the top