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 ?
Another option (though a bit un hibernate-esque) is to use "raw" sql, like this:
List myList = session.createSQLQuery("select single_column from table_name") .addScalar("single_column", StandardBasicTypes.LONG).list();