Friday, November 04, 2005

Hibernate Criteria API: createAlias() means no outer join

With Criteria API, we are unable to create an alias that keeps the desired outer join. Therefore, for a case where you need all the entries that have a null object or a particular value for a joined value for this object (when it's not null, of course), you must use the HQL, as you can see below:

Forum

Issue

That breaks my infra-structure for a multi-criteria search where one of the search criteria would imply a condition like the one mentioned in the links.
Post a Comment