What would be a left join to a component exactly?
Also: why don't you post the Criteria code?

   Diego


On Tue, Apr 27, 2010 at 18:33, Matt Mangold <[email protected]>wrote:

> I am constructing a criteria query between two entities Person and
> Address.  Address is a component in the Person class.
>
> In my criteria query I am Left Outer Joining Address to Person so that
> I can still retrieve People when their address is null.
>
> I am also setting 2 fields in my projection:
>
> Person.Name
> Address.City
>
> When I execute this query, I get a QueryException:  could not resolve
> property: City of: Person.Address.
>
> I assume I get this exception because the Query engine doesn't know
> what to do when it finds a Person with a null address.
>
> Is there a way I can set the query up so that it gives me null values
> in my projected set rather than throwing an exception?
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
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.

Reply via email to