could not execute query 项目中使用使用Hibernate作为持久层框架时,数据库改名后容易忽略的问题
来源:互联网 发布:g71编程实例 编辑:程序博客网 时间:2024/05/16 06:10
项目中使用使用Hibernate作为持久层框架时,如果数据库由于某种原因需要改名,在修改数据库连接后出现“could not execute query”异常,那么有可能是因为你的项目里*.hbm.xml配置文件中的catalog属性值还是原数据库名,改成新数据库名即可。或者干脆将catalog="..."属性去掉,这样就不会存在数据库更名后无法执行查询的问题了。
转载于:http://www.iteye.com/topic/407337
0 0
- could not execute query 项目中使用使用Hibernate作为持久层框架时,数据库改名后容易忽略的问题
- 使用Hibernate时出现“could not execute query”异常
- hibernate使用HibernateCallback 回调的方法查询SQL时could not execute query--作怪的别名
- 关于hibernate的could not execute query错误
- org.hibernate.exception.DataException: could not execute native bulk manipulation query的问题
- could not execute query hibernate 处理办法
- could not execute query
- SQLGrammarException: could not execute query的原因
- SpringMV框架 使用hibernate做持久层
- org.hibernate.exception.GenericJDBCException: could not execute query项目登录验证报错
- 从数据库方面解决org.hibernate.exception.JDBCConnectionException:could not execute query
- 数据库长时间未操作自己断开org.hibernate.exception.JDBCConnectionException: could not execute query
- git使用容易忽略的问题
- org.hibernate.exception.SQLGrammarException: could not execute query
- org.hibernate.exception.JDBCConnectionException: could not execute query
- org.hibernate.exception.SQLGrammarException: could not execute query
- org.hibernate.exception.SQLGrammarException: could not execute query
- Hibernate配置問題: could not execute query
- 如何实现推送引导
- 整数奇偶排序
- QT5问题汇总
- dos窗口直接进入指定目录
- Qt在pro中管理多个子项目(子工程)
- could not execute query 项目中使用使用Hibernate作为持久层框架时,数据库改名后容易忽略的问题
- Maven远程部署Tomcat
- 【转】HashMap源码解析
- iOS开发之关于Runtime运行时:类与对象
- 启动tomcat出现 a java Exception has occured 解决方法
- Fragment
- Java中的反射机制
- HttpServletRequest获取URL get变量
- PHP基础教程3