Hi,
i´m new in Hibernate and have some problems to get it ;-( I tried to map this simple modell to my database (for now, adress should be a 1to1 relation, not a collection, Einrichtung is a german word, you may translate it with company):
<br>
This is the database view:
I played with the mapping, but it doesn´t work. Can anyone help with the the correct mapping ?
Hibernate version: 3
Code:
<hibernate-mapping>
<class name="de.hannit.fsch.benutzerverwaltung.Einrichtung" table="Einrichtung">
<id name="id" column="id">
<generator class="identity" />
</id>
<property name="name" type="string" column="name" />
<many-to-one name="adresse"
class="de.hannit.fsch.benutzerverwaltung.Adresse"
column="adresseID" />
</class>
</hibernate-mapping>