NULL and NOT NULL comparison in the Hibernate API