Ok. Thanks for the reply.
Was just wondering for example if we have a table with 5 columns but we have a named query that selects
only 3 columns.
Code:
Query query = session.getNamedQuery("namedQuery1");
query.setString("column4", column4Value);
final List dbResult = query.list();
for (Iterator iter = dbResult.iterator(); iter.hasNext();) {
Object[] nextCode = (Object) iter.next();
//more processing code
}
What is returned in the list are Object[], so I was wondering if it is possible to returned the object mapped in the hibernate mapping file with the respective object attributes populated instead (of plain Object[])?