Java: 如何解决 Hibernate 查询语言中的 class 未映射异常?
Java: How to resolve class is not mapped exception in Hibernate Query Language?
在执行删除查询时,我得到 "class is not mapped",而我已经映射到 hibernate.cfg.xml
。
您不应在 HQL 查询中使用 table 名称,例如 plan_attribute
,而应使用 class 名称,例如 PlanAttribute
。 属性 plan_id
.
也一样
在执行删除查询时,我得到 "class is not mapped",而我已经映射到 hibernate.cfg.xml
。
您不应在 HQL 查询中使用 table 名称,例如 plan_attribute
,而应使用 class 名称,例如 PlanAttribute
。 属性 plan_id
.