this one worked for me
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping
package="hibernate.testing.model">
<class
name="Parent"
table="tst_parent"
dynamic-update="false"
dynamic-insert="false"
>
<id
name="id"
column="id"
type="java.lang.Long"
>
<generator class="identity">
</generator>
</id>
<version name="version" column="version" type="long" access="field" />
<property
name="name"
type="java.lang.String"
update="true"
insert="true"
column="name"
/>
<set
name="children"
lazy="true"
inverse="true"
cascade="all-delete-orphan"
sort="unsorted"
>
<key
column="parent_id"
/>
<one-to-many
class="Child"
/>
</set>
</class>
<class
name="Child"
table="tst_child"
dynamic-update="false"
dynamic-insert="false"
>
<id
name="id"
column="id"
type="java.lang.Long"
>
<generator class="identity">
</generator>
</id>
<version name="version" column="version" type="long" access="field" />
<many-to-one
name="parent"
class="Parent"
cascade="none"
outer-join="auto"
update="true"
insert="true"
column="parent_id"
/>
<property
name="name"
type="java.lang.String"
update="true"
insert="true"
column="name"
/>
</class>
</hibernate-mapping>