This TblBankRate has many to one relationship to TblAffiliate and when I take out the many-to-one relationship from TblBankRate.hbm.xml, the query works... but I need the relationship...
====in TblBankRate.hbm.xml=======If I take this section out, it works...=======
<many-to-one
name="TblAffiliate"
class="com.service.model.TblAffiliate"
not-null="true"
column ="IDdAffiliate" />
=== in TblAffiliate.hbm.xml ==========
<set
name="TblBankRate"
lazy="true"
inverse="true"
cascade="none"
>
<key>
<column name="IDAffiliate" />
</key>
<one-to-many
class="com.service.model.TblBankRate"
/>
</set>
|