<class name="Product" table="Product">
        <id name="ProductID" column="ProductID">
            <generator class="hilo"/>
        </id>
        <property name="Name"/>
        <property name="Price"/>
        <many-to-one name="Detail" class="ProductDetail" cascade="all"
                lazy="proxy" unique="true" />
    </class>

    <class name="ProductDetail" table="Product">
        <id name="ProductID" column="ProductID">
            <generator class="hilo"/>
        </id>
        <property name="CreateTime"/>
         <property name="LastUpdated"/>
        <one-to-one name="Product" class ="Product" cascade="none"/>
    </class>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to nhusers@googlegroups.com
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to