I am working on hibernate in eclipse. I am executing simple \'From\' query. Here is the code
List list = sess1.createQuery(\"From Myview\").list(); System.
If you have association in the mapping then check if fetch=FetchType.EAGER. If yes then use other fetch type or fetchMode.
fetch=FetchType.EAGER