(在线等)初学 hibernate 问题碰到的一个问题

来源:百度知道 编辑:UC知道 时间:2024/05/28 00:51:59
环境jdk1.5.0_05 + eclipse 3.2.2 + MyEclipse 5.5.1 GA + Oracle 9.0.1.1.1
在hibernare reverse engineering时出现An internal error occurred during: "Generating Artifacts"。
网上说用最新的classes12.jar 但是我用了oracle 11g里面的ojdbc5.jar还是不行啊 。

发生该错误主要有两种情况,一是你eclipse上安装了jboss公司的hibernate tools plugin for eclipse,这些插件与myEclipse发生冲突,解决方法是删除这些插件。二是你在没有卸载以前myEclipse版本的情况下安装了新的myEclipse版本,解决方法是把myEclipse卸载后重新安装,我遇到的情况就属于每二种情况,重装myEclipse后问题解决了。

你可以看看这里...
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-13363.html

----------------
On page 3 of the RE wizard, uncheck the last 2 checkboxes. That will isolate the generation to work on just the table you have chosen.

Usually as you modify tables and regenerate your mappings, you would want these boxes checked so that relationships between your table and others are not lost when you regenerate the mappings for just one table.

In this case however, you can uncheck the boxes and you should be good to go.