I an new to Hibernate and I am overwhelmed by what it has to offer me. I am confused and appreciate any help.
this is what my hbm file looks like:
Code:
<hibernate-mapping>
<class name="parent" schema ="refdb">
<composite-id>
<key-property name="key1"/>
<key-property name="key2"/>
</composite-id>
<property name="field1"/>
<property name="field2"/>
<list name="children" table="child-subTable" schema="refdb">
<key>
<column name="key1"/>
<column name="key2"/>
</key>
<index cloumn="posn"/>
<composite-element class="children">
<proerty name="childField1"/>
<proerty name="childField2"/>
</composite-element?
</list>
</class>
</hibernate-mapping>
There is a 1-many relationship between parent and child.
When I run the program, the collection List of Children keeps getting inserted and deleted and continues on until a General hinbernate exception is thrown.
Could someone please check my code and verify that it is correct and explain to me what is going on?
Many Thanks[/code]