Hibernate table not mapped error in HQL query

后端 未结 9 797
轮回少年
轮回少年 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:03

    Ensure your have set the table name on the entity annotation too.

    @Entity(name = "table_name")
    @Table(name = "table_name")
    public class TableName {
    
    }
    

提交回复
热议问题