Please consider using Criteria.uniqueResult