EntityDao: fixed NULL values in buildCriteriaDql