java.lang.ClassCastException: org.hibernate.impl.CriteriaImpl cannot be cast to com.YourClass

When working on any application which Uses Java + Hibernate 3, you face errors like the one shown below: java.lang.ClassCastException: org.hibernate.impl.CriteriaImpl cannot be cast to

Continue reading