異常:org.hibernate.hql.ast.QuerySyntaxException: EmpModel is not mapped [from EmpModel where name = ?

異常:

	org.hibernate.hql.ast.QuerySyntaxException: EmpModel is not mapped [from EmpModel where name = ? and pwd = ?]
原因:

實體類缺少映射文件

解決辦法:

補充實體類的映射文件   實體類.hbm.xml

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章