Hibernate table not mapped error in HQL query

后端 未结 9 794
轮回少年
轮回少年 2020-11-27 13:47

I have a web application that use Hibernate to make CRUD operations over a database. I got an error saying that the table is not mapped. See the Java files:

Error me

9条回答
  •  悲哀的现实
    2020-11-27 14:11

    In addition to the accepted answer, one other check is to make sure that you have the right reference to your entity package in sessionFactory.setPackagesToScan(...) while setting up your session factory.

提交回复
热议问题