I have a mapping similar to the following for the Candidate object:
References(x => x.Country).Column("CountryId").NotFound().Ignore()
the problem is that if I select * Candidates, I get an additional choice for each of them, this is not very good, so I pull out the NotNound () bit. Ignore (), but now the following code fails with an ObjectNotFoundException exception
if (entity.Country != null) { bos.CountryName = entity.Country.Name; }
Is there a way to get Hhibernate to make a choice when I compare County! = Null?
Thanks,
Calin source share