Home > Database > Mysql Tutorial > ssh框架下显示数据库内容失败的原因

ssh框架下显示数据库内容失败的原因

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:16:32
Original
1320 people have browsed it

ssh框架下使用hql语言访问数据库,容易犯一些错误。 总结几个可能的原因(假设数据库表名字叫table,持久化类叫Table) 1.hql语言中持久化类名写成了表名,例如 string hql = select Table; 正确,但若写成 string hql=select table; 则错误 2.applicationCo

ssh框架下使用hql语言访问数据库,容易犯一些错误。

总结几个可能的原因(假设数据库表名字叫table,持久化类叫Table)

1.hql语言中持久化类名写成了表名,例如  string hql = "select Table";  正确,但若写成 string hql="select table"; 则错误

2.applicationContext.xml文件中忘记添加例如如下面的内容:


   
    com/car/po/Customer.hbm.xml
    com/car/po/BookingAdmin.hbm.xml
   

  

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
git - Coding.net ssh setup issue
From 1970-01-01 08:00:00
0
0
0
ssh - git clone and git push errors
From 1970-01-01 08:00:00
0
0
0
git - error when adding ssh key
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template