Hibernate 报错:this project is not a myeclipse hibernate project . assuming hibernate 3 cap
2015-07-17 15:11
330 查看
问题 web 项目中 打开 hibernate.cfg.xml 文件时 提示:The project is not a myEclipse hibernate project。
并且:在 dbbrower中使用 hibernate reverse engineering 建立 表对应的bean 和 配置文件时:找不到可用的javasource路径。
原因:
使用版本控制的时候,工程根目录下的: .project 和 .myhibernatedata 文件不在版本控制范围内,因此组内成员更新source后,缺少
.project 内的 com.genuitec.eclipse.hibernate.hibernatenature
和
.myhibernatedata 文件。
解决;
项目名上右键–〉myeclipse–>add hibernate capabilites –>next–>hibernate config file –> existing –>选择现有工程存在的hibernate配置文件–> next –> 不生成factory class –> end
PS:转自http://blog.csdn.net/ice0river/archive/2008/08/23/2817486.aspx
并且:在 dbbrower中使用 hibernate reverse engineering 建立 表对应的bean 和 配置文件时:找不到可用的javasource路径。
原因:
使用版本控制的时候,工程根目录下的: .project 和 .myhibernatedata 文件不在版本控制范围内,因此组内成员更新source后,缺少
.project 内的 com.genuitec.eclipse.hibernate.hibernatenature
和
.myhibernatedata 文件。
解决;
项目名上右键–〉myeclipse–>add hibernate capabilites –>next–>hibernate config file –> existing –>选择现有工程存在的hibernate配置文件–> next –> 不生成factory class –> end
PS:转自http://blog.csdn.net/ice0river/archive/2008/08/23/2817486.aspx
相关文章推荐
- spring注入时bean的set方法为什么不能是static类型?
- java 利用系统WinRAR解压缩(zip/rar压缩文件)
- 改进Spring中的分页技术
- 关于java解压缩文件(rar或者zip)的实现示例
- Java编程中“为了性能”需做的26件事
- eclipse快捷键及各种设置
- Spring MVC项目的构建过程
- 深入理解java异常处理机制
- 探索 ConcurrentHashMap 高并发性的实现机制(转载)
- CloudSimExample1.java 代码分析——2015.07.17
- Spring 注入static变量
- An internal error occurred during: "Retrieving archetypes:". Java heap space
- Spring中手动增加配置文件中占位符引用的变量
- eclipse save action不起作用
- HoughLinesP opencv for java
- Spring-service初始化或者销毁的几种方法
- 【java设计模式】命令模式
- Swagger+Spring MVC框架学习分享
- struts2 脱离配置文件 全注解配置
- java开发webservice的几种方式