Joined: Fri Apr 03, 2009 9:40 am Posts: 10
|
I have two tables, each mapped to a C# class.
Table Person
========
PK - PersonID
Table Supporter
==========
PK - SupporterID
FK - PersonID
I'm trying to set up the mapping of the Person class in the HBM - but I get no success.
I've tried using -
<one-to-one name="Supporter" constrained="true" class="Supporter"/>
I get no data returned i.e the Supporter property of the Person instance is null.
If I run the corresponding SQL -
select supporter.* from person
inner join supporter on person.personid = supporter.personid
where person.personid='46'
then I get a row returned.
What am I doing wrong?
Cheers.
TeaVR
|
|