@chickenlips wrote:
public List<NocemData> example(List<NocemDataDAO> dao) {
Transaction t = dao.get(0).getSession().beginTransaction();
List resultList = d.get(0).getSession().createQuery(“from MyTable”).list();
t.commit();
return resultList;
}
What could be the problem?
the return type is a List of NocemData — List<NocemData>
You probably need to change “NocemData” to whatever class your query returns,
Lee