Hi All,
I am trying to find a solution for couple of days.
mine is not a legacy database. i am using oracle.
i have a parent and child table . my child table does not have a primary key.
it has only foreign key. So which column you will specify in <id> tag of child hbm file.
i specified foriegn key in <id> tag of child hbm.
like:
<id name="foreignkey" column="FOREIGN_KEY">
and i also tried giving some other column which is in that child table.
<id name="age" column="AGE">
but the result i am getting is wrong.
for example:
i specified foreign key in <id> tag of child hbm. when i execute query for that id.
if there is two records for that id in child table.
when i display iam displaying two rows but the problem is first row printed twice. and the second original row is not showing. it means it overwrite the output with first record.
please if any body know this answer me.
thanks in advance
[ March 28, 2006: Message edited by: Mark Spritzler ]