|
<?xml version='1.0' encoding='utf-8'?>
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'>
<class
name='Domain.Parent, Domain'
table= 'Parent'>
<cache usage='read-write' region='NHibernate.Caches.Testing'/>
<id name='Id'
column='ParentId'
unsaved-value='0'>
<generator class='native' />
</id>
<property name='Data'/>
<bag name='Children'
table='Child'
inverse='true'
cascade='all-delete-orphan'
lazy='true'>
<cache usage='read-write' region='NHibernate.Caches.Testing'/>
<key column='ParentId'/>
<one-to-many class='Domain.Child, Domain'/>
</bag>
</class>
</hibernate-mapping>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.