Hey,
I got a select query but for some reason I can't print out the result. What am I missing?
Code:
Query q = session.createQuery("SELECT c.customerTPK.customerno "
+ "FROM net.sf.hibernate.CustomerT c "
+ "WHERE c.customerTPK.customerno='1397549'");
List list = q.list();
System.out.println("Found " + list.size() + " matching search criteria\n");
System.out.println("JOIN OF CUSTOMERORDER & CUSTOMERORDERLINES");
System.out.println("------------------------------------------");
for (Iterator i = list.iterator(); i.hasNext();) {
Object[] obj = (Object[]) i.next();
String s = (String) obj[0];
System.out.println(s);
}
Br. Newman