Beginner |
|
Joined: Thu Oct 25, 2007 3:45 am Posts: 22
|
Hello,
The case looks like this: two classes with mappings:
<class name="Class1" table="Class1">
<id name="Id" type="int">
<column name="Id" />
<generator class="identity"/>
</id>
<!-- One-to-many association with Class2 -->
</class>
<class name="Class2" table="Class2">
<!-- One-to-one association with Class3 -->
</class>
<class name="Class3" table="Class3">
<!-- ... -->
</class>
There is an int property in Class3 which value needs to be equal to the id of Class1. Can it be done with only one operation - save of Class1?
(The One-to-one association of Class2 with Class3 is just example, could be different.)
|
|