modelling associations [message #620682] |
Mon, 23 February 2009 21:27 |
Rachna Bakhru Messages: 45 Registered: July 2009 |
Member |
|
|
Hello
I am new to Teneo and Emf.
The modeling associations article on the elever website did give me some
overview. (http://www.elver.org/hibernate/hibernate_relations.html) But Is
there a more detailed article available anywhere?
I am working with the library example
I am trying to map the Writer to books relationshp as OneToMany
relationship.
<eStructuralFeatures xsi:type="ecore:EReference" name="books"
upperBound="-1"
eType="#//Book" eOpposite="#//Book/author">
<eAnnotations source="teneo.jpa">
<details key="appinfo" value="@OneToMany(mappedBy="author",
indexed=false)"/>
</eAnnotations>
</eStructuralFeatures>
But the mapping generated is always of type many-to-many.
What am I doing wrong?
Thanks
RJ
|
|
|
Powered by
FUDForum. Page generated in 0.01991 seconds