Session session = sessionFactory.openSession();
ArrayList arrayList = null;
String SQL_STRING = "FROM AppLabsUser as users";
Query query = session.createQuery(SQL_STRING);
ArrayList list = (ArrayList)query.list();
for(int i=0; i
System.out.println(list.get(i));
}
session.close();
0 comments:
Post a Comment