MyEclipse Hibernate生成ORM持久化类的问题 hibernate版本修改



MyEclipse Hibernate生成ORM持久化类的问题 hibernate版本修改报错1:
点击”Hibernate Reverse Engineering”出现如下错误:
“This wizard generates Hibernate3.0 OR mappings(*.hbm.xml).The project your select is a Hibernate 2 project.
Execution of this wizard may produce incompatible mapping files”.

解决办法:到工程根目录下,用文本编辑器打开.myhibernatedata文件,内容如下:
修改文件中的”version”的值,修改为3.1。