1 <?xml version="1.0" encoding="utf-8" ?>
\r
2 <hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
\r
3 <class name="Castle.Applications.MindDump.Model.Author, Castle.Applications.MindDump" table="author">
\r
4 <id name="Id" column="id" unsaved-value="0">
\r
5 <generator class="native" />
\r
7 <property name="Name" column="name" not-null="true" />
\r
8 <property name="Login" column="login" not-null="true" unique="true" />
\r
9 <property name="Password" column="password" not-null="true" />
\r
10 <bag name="Blogs" lazy="true" cascade="all">
\r
11 <key column="Author_id" />
\r
12 <one-to-many class="Castle.Applications.MindDump.Model.Blog, Castle.Applications.MindDump" />
\r
15 </hibernate-mapping>
\r