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

Stack Overflow | Francis | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    Stack Overflow | 9 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