org.hibernate.hql.internal.ast.QuerySyntaxException: table is not mapped

后端 未结 19 1744
滥情空心
滥情空心 2020-12-04 14:59

I have example web application Hibernate 4.3.5 + Derby database 10.10.1.1+ Glassfish4.0 with IDE NetBeans 8.0Beta.

I have the next exception:

Caused          


        
19条回答
  •  生来不讨喜
    2020-12-04 15:30

    There is one more chance to get this exception even we used class name i.e., if we have two classes with same name in different packages. we'll get this problem.

    I think hibernate may get ambiguity and throws this exception, so the solution is to use complete qualified name(like com.test.Customerv)

    I added this answer that will help in scenario as I mentioned. I got the same scenario got stuck for some time.

提交回复
热议问题