Hello,
"One-to-one" don't works properly.
here an example , one to one between Person and PersonDaten:
"Person entity"
Entity Person {
scaffold
- @Anrede anrede
- @PersonName name key
- @Geschlecht geschlecht
- @PersonDaten daten <-> person
}
"Erweiterte Daten einer Person"
ValueObject PersonDaten {
- @Person person <-> daten
- @Familienstand familienstand nullable
- @Schulabschluss schulabschluss nullable
- @Gemeinde gemeinde nullable
- @Kommunikation kommunikation nullable
- @Adresse adresse nullable
- Set<@Dienst> dienste
- @PersonName partner nullable
String geburtsname nullable
String beruf nullable
Date geburtsdatum
}
Generated hibernate:
<hibernate-mapping>
<class name="com.eugeis.bs.person.domain.Person" table="PERSON">
...
<many-to-one name="daten" column="DATEN"
class="com.eugeis.bs.person.domain.PersonDaten"/>
...
</class>
</hibernate-mapping>
<hibernate-mapping>
<class name="com.eugeis.bs.person.domain.PersonDaten" table="PERSONDATEN">
...
<one-to-one name="person" class="com.eugeis.bs.person.domain.Person"
property-ref="daten"/>
</class>
</hibernate-mapping>
Thank you
Eugeis
--
View this message in context:
http://www.nabble.com/Sculptor-Hibernate%3A-%22One-to-one%22-don%27t-works-properly-tp20119794s17564p20119794.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer