码迷,mamicode.com
首页 > Web开发 > 详细

>Hibernate 报错:this project is not a myeclipse hibernate project . assuming hibernate 3 cap

时间:2016-08-02 11:20:22      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:

 

>Hibernate 报错:this project is not a myeclipse hibernate project . assuming hibernate 3 cap

web 项目中 打开 hibernate.cfg.xml 文件时 提示:The project is not a myEclipse hibernate project。

并且:在 dbbrower中使用 hibernate reverse engineering 建立 表对应的bean 和 配置文件时:找不到可用的javasource路径。

 

原因:

使用版本控制的时候,工程根目录下的: .project  和 .myhibernatedata 文件不在版本控制范围内,因此组内成员更新source后,缺少

.project 内的 <nature>com.genuitec.eclipse.hibernate.hibernatenature</nature> 

.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

>Hibernate 报错:this project is not a myeclipse hibernate project . assuming hibernate 3 cap

标签:

原文地址:http://www.cnblogs.com/HiJacky/p/5728382.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!