问题 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

相关文章:

  • 2022-12-23
  • 2021-04-03
  • 2021-11-12
  • 2021-09-24
  • 2021-07-23
  • 2021-07-06
猜你喜欢
  • 2022-12-23
  • 2021-06-18
  • 2021-05-26
  • 2021-06-25
  • 2021-07-19
  • 2022-12-23
  • 2021-09-19
相关资源
相似解决方案