hibernate反向引擎:Path must include project and resource name: /

解决方法:修改.myhibernatedata文件里面的configFile属性

指定hibernate.cfg.xmll路径。格式是/项目名称/src/hibernate.cfg.xml

 

如果提示hibenate功能2.2冲突,修改version 为当前hibernate使用版本

 

.myhibernatedata

#
#Thu Dec 15 14:33:09 CST 2011
genBasicCompId=false
sessionFactoryName=
profile=
daoSFId=
version=3.0
jndiPath=
detectM2M=false
reStrategyClass=
springDaoFile=
useJavaTypes=true
keyGenerator=uuid.string
libInstallFolder=
addLibs2Project=false
genVersionTag=false
sessionFactoryId=
basePersistenceClass=
reSettingsFile=/jxwpgsh/hibernate.reveng.xml
configFile=/jxwpgsh/src/hibernate.cfg.xml
createConfigFile=false
addLibs2Classpath=false

你可能感兴趣的:(hibernate反向引擎:Path must include project and resource name: /)