Hi everyone :)
I have a question:
these are my maooing files:
First:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="IpoCredit.Rating, IpoCredit" table="rating">
<id name="Id" column="id" type="Int32">
<generator class="identity" />
</id>
<property name="StrRatingName" column="ratingname" type="String" />
<property name="Position" column="position" type="Int32" />
<set name="RatingOnDate" lazy="true" cascade="save-update">
<key column="ratingid" />
<one-to-many class="IpoCredit.RatingDate, IpoCredit" />
</set>
</class>
</hibernate-mapping>
Second:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="IpoCredit.RatingDate, IpoCredit" table="ratingdate">
<id name="Id" column="id" type="Int32">
<generator class="identity"/>
</id>
<property name="RatingId" column="ratingid" type="Int32"/>
<property name="RateDate" column="date" type="DateTime"/>
<set name="RateValue" lazy="true" cascade="all">
<key column="ratingdateid"/>
<one-to-many class="IpoCredit.RatingValue, IpoCredit"/>
</set>
</class>
</hibernate-mapping>
And third:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="IpoCredit.RatingValue, IpoCredit" table="ratingvalue">
<id name="Id" column="id" type="Int32">
<generator class="identity"/>
</id>
<property name="Amount" column="value" type="Int32"/>
<many-to-one name="Banks" class="IpoCredit.IBank, IpoCredit" column="bankid" cascade="all"/>
</class>
</hibernate-mapping>
From m,y ASP code i need to reach to the third object RateValue through the first object Rating. How can I do it? :) Please show me some code :)