SSH

1.使用hql="from Employee" 出现" Employee is not mapped " 错误

(1)Employee 为对象名而不是表名 (2)没有将Employee.hbm.xml加入配置文件

2.Could not open Hibernate Session for transaction

获取list,createQuery得到的是query,后面加.list()。

原文地址:https://www.cnblogs.com/froid/p/5679054.html