Eclipse+hibernate出现如下问题:org.hibernate.hql.ast.QuerySyntaxException: DEPT is not mapped [from DEPT]
如题 我是刚学hibernate
在EClipse中输入HQL:from DEPT
出现这样的错误
org.hibernate.hql.ast.QuerySyntaxException: DEPT is not mapped [from DEPT]
而在Eclipse中查询语句
select
"DEPTNO",
"DNAME",
"LOC"
from
"SCOTT"."DEPT"
却可以查到结果