Hi All,
how to map a result list to object?or how to bind a object to query?
example for:
Query query=session.createQuery("select bag.name, bag.tile,bag.size from Bag bag where bag.id=:id");
List list=query.list();
how to get Bag from list?
as bag=(Bag)list.get(i);
I want not to do as
Object[] objs=(Object[])list.get(i);
can I bend a class to query as
session.createSqlQuery("").addEntityClass(Class);
if not? why hibernate not to implement it?
thank you
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html