Hi,
StringBuffer query = new StringBuffer(" from Employee as E,Depts as D Where D.deptno=E.depts");
String strQuery = query.toString();
Query q = session.createQuery( strQuery );
System.out.println(q.toString());
List students = q.list();
The above query is working fine. i got a correct list.size();
But how to get all the fields of two tables.
i wrote like this
Iterator itrStud = students.iterator();
for( int index = 0 ; itrStud.hasNext() ; index++){
Object s1 = (Object) itrStud.next();
System.out.println("values :"+s1);
}
but i got values like
values: [Ljava.lang.Object;@1a116c9
values: from(depts)[Ljava.lang.Object;@1d1e730
How can i get all this fields?
Thanks