1 <?xml version="1.0" encoding="utf-8" ?>
\r
2 <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
\r
3 <class name="Castle.Facilities.NHibernateIntegration.Tests.Blog, Castle.Facilities.NHibernateIntegration.Tests" table="BLOGTABLE2">
\r
5 <id name="Id" type="Int32" column="BLOG_ID">
\r
6 <generator class="native" />
\r
8 <property name="Name" column="NAME" not-null="true" unique="true" />
\r
9 <bag name="Items" inverse="true" lazy="true" order-by="DATE_TIME" cascade="all">
\r
10 <key column="BLOG_ID" />
\r
11 <one-to-many class="Castle.Facilities.NHibernateIntegration.Tests.BlogItem, Castle.Facilities.NHibernateIntegration.Tests" />
\r
14 </hibernate-mapping>
\r