I use reflection to run a function in a Dao.
However, after : List<Hotel> size = (List<Hotel>)session.createQuery("from Hotel t").list(); , I can see the sql is printed out in MyEclipse console,...