Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

68 lines (67 sloc) 1.506 kb
<?xml version="1.0" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="false">
<class
name="NHibernate.DomainModel.MoreStuff, NHibernate.DomainModel"
>
<composite-id>
<key-property
name="IntId"
/>
<key-property
name="StringId"
length="32"
/>
</composite-id>
<property name="Name" />
<bag
name="Stuffs"
inverse="true"
lazy="false"
cascade="all"
>
<key>
<!--unfortunately have to specify not-null here because of limitation in schema export....-->
<column
name="moreInt"
not-null="true"
/>
<column
name="moreString"
not-null="true"
length="32"
/>
</key>
<one-to-many
class="NHibernate.DomainModel.Stuff, NHibernate.DomainModel"
/>
</bag>
</class>
<class
name="NHibernate.DomainModel.Stuff, NHibernate.DomainModel"
>
<composite-id unsaved-value="any">
<key-property name="Id" />
<key-many-to-one
name="Foo"
class="NHibernate.DomainModel.Foo, NHibernate.DomainModel"
/>
<key-many-to-one
name="MoreStuff"
class="NHibernate.DomainModel.MoreStuff, NHibernate.DomainModel"
>
<column
name="moreInt"
/>
<column
name="moreString"
length="32"
/>
</key-many-to-one>
</composite-id>
<!--
http://jira.nhibernate.org:8080/browse/NH-88
TODO: in h2.0.3 this is mapped to a TimeZone - what to use in .net???
<property name="Property" />
-->
</class>
</hibernate-mapping>
Jump to Line
Something went wrong with that request. Please try again.