java.lang.ClassCastException: org.hibernate.internal.QueryImpl cannot be cast to com.models.User

Stack Overflow | Francis | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    java.lang.ClassCastException: org.hibernate.internal.QueryImpl cannot be cast to com.models.User

    Stack Overflow | 8 months ago | Francis
    java.lang.ClassCastException: org.hibernate.internal.QueryImpl cannot be cast to com.models.User

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.hibernate.internal.QueryImpl cannot be cast to com.models.User

      at com.models.UserDao.getByEmail()
    2. com.models
      UserDao.getByEmail
      1. com.models.UserDao.getByEmail(UserDao.java:62)
      1 frame