In hibernate I can do following
Query q = session.createQuery("from Employee as e);
List<Employee> emps = q.list();
Now if I want to fetch int and String how can I do it?
Query q = session.createQuery(""SELECT E.firstName,E.ID FROM Employee E";
List ans = q.list();
Now what will be the structure of list?
See Question&Answers more detail:os