Hi,
I got a doubt…
try
{
System.out.println(“Entered”);
Session session = SessionManager.currentSession();
Transaction tx = session.beginTransaction();
Query query = session.createQuery(“select * from acc_account”);
for (Iterator it = query.iterate(); it.hasNext();) {
AccAccount account = (AccAccount) it.next();
// What Exactly needs to be written to run this query…. ??
}
session.close();
System.out.println(“Closed”);
}
Please help me in this..
Thanks,
Cecil.C.