web 项目中打开 hibernate.cfg.xml 文件时提示:The project is not a myEclipse hibernate project.
这是由于使用版本控制SVN的时候,工程根目录下的:.project和.myhibernatedata 文件不在版本控制范围内,因此组内的成员更新资源后,缺少
.project 内的 <nature>com.genuitec.eclipse.hibernate.hibernatenature</nature> 和.myhibernatedata 文件。
解决办法是:
项目名右键->myeclipse->add hibernate capabilites->next->hibernate config file->existing->选择目前工程的hibernate配置文件->next
->不生成factory class->end.