Hi msirfani,
It worked because within the following Set element
<set name="organisations" cascade="all" inverse="true">
<key column="prnt_org_code" />
<one-to-many class="mydomain.Organisation" />
</set>
, the key column denotes the foreign key. Yours is a case of self-referential integrity where the foreign key is in the same table.
The documentation , I believe,is sufficient as far as collections and parent-child relation ships are concerned.
Go thru the following link for more info.
http://www.xylax.net/hibernate/
thanks
santosh