, from, where. null , SQL ( HQL).
: http://en.wikipedia.org/wiki/Null_ (SQL)
u.CommunicationPreferences.Email = 0, CommunicationPreferences , .
( ):
from WebUser u
left join fetch u.WebUserProfile w
left join fetch u.CommunicationPreferences c
where ( (c.Email = 0 or c is null)
and u.SyncDate is not null)
or u.DateDeleted is not null
HQL :
- (w c ), (
c.Email = 0) (or c is null)
. :
LEFT , WebUser, CommunicationPreferences. u.CommunicationPreferences.Email, , u.CommunicationPreferences ( , ).
, , SQL ... HQL :-) .