Hibernate and HQL specific implementation.