Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.01
Mapping documents:
<hibernate-mapping default-lazy="false">
<class name="Test" table="TEST" dynamic-update="true">
<composite-id name="id" class="PkTest">
<key-property name="idTest" type="integer" column="ID_TEST" />
....
</composite-id>
<property name="title" column="TITLE" type="string"/>
...
<set name="children" inverse="true" >
<key>
<column name="ID_TEST" />
</key>
<one-to-many class="SubTest"/>
</set>
</class>
<class name="SubTest" table="SUB_TEST" dynamic-update="true">
.....
When I load a Test class, with session.load(class myclass,serializable id) I get also all children.
How can I load only parent object ?