1、在myeclipse中使用hibernate进行“Hibernate Reverse Engineering”报如下错:
An internal error occurred during: "Generating Artifacts".
Path must include project and resource name: /
找到工程下的 .myhibernatedata
#
Mon Jan 09 22:06:02 CST 2012genBasicCompId=false
sessionFactoryName=
profile=
daoSFId=
version=3.1
jndiPath=
detectM2M=false
reStrategyClass=
springDaoFile=
useJavaTypes=false
keyGenerator=native
libInstallFolder=/WebRoot/WEB-INF/lib
addLibs2Project=false
genVersionTag=false
sessionFactoryId=
basePersistenceClass=
reSettingsFile=/demo/hibernate.reveng.xml
configFile=/demo/src/com/demo/hibernate/hibernate.cfg.xml
createConfigFile=false
addLibs2Classpath=false
红色部分必须写上
2、如下报错:
“This wizard generates Hibernate 3.0.OR mapping(*.hbm.xml).
the project you selected is a Hibernate 2 project.Execution of
this wizard may produce incompatible mapping files "
解决:将version改成你自己的版本好就ok
共同学习,写下你的评论
评论加载中...
作者其他优质文章