if i have achild class mapped by (TPS) teqnique in the parent
class ..  the child class has (one-to-one) assoction with another
entity how can i make this association by primary key method?

<class name="Parent" table="Parent">
        <id name="ParentId" column="ParentId" type="Int64">
                <generator class="assigned"/>
        </id>
        <property name="ParentName" column="ParentName" type="String" not-
null="true" />
        <joined-subclass name="Child1" table="Child1">
                <key column="ParentId"/>
                <property name="Child1Member" column="X" type="String" not-
null="true" />
        </joined-subclass>
        <joined-subclass name="Child2" table="Child2">
                <key column="ParentId"/>
                <property name="Child2Member" column="Child2Member" 
type="String"  /
>
        </joined-subclass>
</class>

consider the association is between (Child1 & Entity2).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to