How can I set a Hibernate Parameter to \"null\"? Example:
Query query = getSession().createQuery(\"from CountryDTO c where c.status = :status and c.type =:t
You can use
Restrictions.eqOrIsNull("status", status)
insted of
status == null ? Restrictions.isNull("status") : Restrictions.eq("status", status)