simplest criteria query
- by c0mrade
What is the simplest hibernate criteria query equivalent of
SELECT name FROM people WHERE id='3'
is it :
criteria.add(Expression.eq("name ", 3));
and how can I retrieve it to String variable the value of name field, the IDs are unique