Hi there - I am using NH 2.0. I am used to using the Criteria API for retrieving objects, but yesterday I ran into problems. I want to find a sub-set of objects of class A whoose one-to-one relation to another class B is null.
If I use the Restrictions.IsNull of the Criteria API it does not work. I will ask for entities of type B where B.Id IS NULL, which will never happen. My setup: Class A ID : int Name : string B : B Class B ID : int Name: string The classes A and B share the same primary key hence I thought it best to use a one-to-one relation for the A.B property. I have solved this using HQL using a sub-query but I would still like to know if its possible to do this using the Criteria API. Cheers, Thomas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
