原因:
使用版本控制的时候,工程根目录下的: .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