|
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="NHibernate.MapClasses" assembly="App_Code">
<class name="Order" table="orders">
<id name="Id" column="id" type="int" >
<generator class="native" />
</id>
<property name="Name" type="string" not-null="true" />
<property name="Email" type="string" not-null="true"/>
<property name="Address" type="string" not-null="true"/>
<property name="Pay_Type" type="string" not-null="true" />
<property name="Shipped_At" type="DateTime" not-null="false"/>
<set name="LineItems" inverse="true" cascade="all-delete-orphan">
<key column="order_id" />
<one-to-many class="LineItem" />
</set>
</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.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
After defending his
PhD thesis in 2005 (computational nuclear physics) at Vanderbilt in Nashville, the author decided to pursue a career in software development. As a long time open source advocate, he started with writing web applications using Linux-Apache-MySql-P (LAMP) framework. After that experience, he decided to embrace Microsoft technologies.
Currently working as a web developer in .NET platform in the online payments company.