I\'m trying to get only the list of id of object bob for example instead of the list of bob. It\'s ok with a HQL request, but I would know if it\'s possible using criteria ?
Similarly you can also:
Criteria criteria = session.createCriteria(bob.class); criteria.add(Expression.gt("id", 10)); criteria.setProjection(Projections.property("id")); criteria.addOrder(Order.asc("id")); return criteria.list();