Beginner |
 |
Joined: Wed Oct 03, 2007 9:46 pm Posts: 37
|
in my abc.xml file , i have this
<many-to-one
name="distributorProfile"
column="distributorId" insert="false" update="false"
/>
this will inner join with table distributorprofile
but the column that i wanna join inside distributorprofile is not "distributorId"
so how to abc.distributorId = distributorProfile.somethingColumn ?
in my distributorprofile xml, i have mapping like this...
<id name="profileId">
</id>
<property name="somethingColumn"/>
<property name="mobileNo"/>
as u can see the column that i wanna join is not primary key
|
|