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.
Your entity Myview have to implement java.io.Serializable interface