MyEclipse中使用Hql编辑器找不到Hibernate.cfg.xml文件解决方法
2009-05-16 16:13
399 查看
在使用HQL编辑器的时候提示Your configuration most likely does not have any mappings defined.不能找到mapping,明明在Hibernate.cfg.xml已经配置了mapping,为什么还是找不到呢,原来是我在复制一个原来的工程,在原来的基础上又加入了一些映射,但是Myeclipse自己的映射文件Hibernate.cfg.xml的路径还是原来的,所以造成找不到的错误
解决方法:
在工程根目录下打开“.myhibernatedata”文件。
修改“configFile=”为“configFile=/src/hibernate.cfg.xml”。
注意:要改成自己对应的配置文件路径。
这样即可
解决方法:
在工程根目录下打开“.myhibernatedata”文件。
修改“configFile=”为“configFile=/src/hibernate.cfg.xml”。
注意:要改成自己对应的配置文件路径。
这样即可
相关文章推荐
- maven+hibernate使用Junit测试找不到hibernate.cfg.xml 的解决
- 使用CocoaPods找不到头文件解决方法
- 使用Maven构建Hibernate项目时not found /hibernate.cfg.xml 问题解决
- 注解的力量 -----Spring 2.5 JPA hibernate 使用方法的点滴整理(二):进一步消除 hibernate.cfg.xml
- myeclipse _9.fdt (系统找不到指定的文件。) mavent 解决方法
- 使用ASIHTTPRequest 编译提示找不到"libxml/HTMLparser.h"的解决方法
- 命令行下使用javah命令生成.h文件,出现“错误: 无法访问android.app.Activity 找不到android.app.Activity的类文件”的解决方法
- myeclipse 逆向工程生成根据数据表生成映射文件,javaBean,hibernate.cfg.xml
- 使用CocoaPods找不到头文件解决方法
- 使用ASIHTTPRequest 编译提示找不到"libxml/HTMLparser.h"的解决方法
- 在ARC中使用weak报错和文件目录找不到的解决方法
- web 项目中 打开 hibernate.cfg.xml 文件时 提示:The project is not a myEclipse hibernate project
- maven hibernate hibernate.cfg.xml以及 XXX.hbm.xml文件找不到
- 注解的力量 -----Spring 2.5 JPA hibernate 使用方法的点滴整理(一):消除hibernate中<mapping resouce 的xxxx. hbm.xml文件
- 使用ASIHTTPRequest 编译提示找不到"libxml/HTMLparser.h"的解决方法
- 解决Eclipse项目中有sql-map-config.xml文件但是运行Junit测试ibatis时提示找不到该文件的一种方法
- 注解的力量 -----Spring 2.5 JPA hibernate 使用方法的点滴整理(一):消除hibernate中<mapping resouce 的xxxx. hbm.xml文件
- C# winform程序发布后找不到数据文件(xml,ini,etc...)的解决方法
- 在ARC中使用weak报错和文件目录找不到的解决方法
- winform程序发布后找不到数据文件(xml,ini,etc...)的解决方法