hi. I would like to query using hibernate given a particulay query string I did it like this:
session = HibernateUtil.getSessionFactory().openSession();
session.beginTransaction();
List<String> result = session.createQuery("Select item_value from cb_items").list();
session.getTransaction().commit();
session.clear();
return result;
Is this right? or do i have to substitute the column name with the fields in my pojo/bean and the table name with my pojo/bean name