myeclipse关联hibernate源码

如果是myeclipse自动生成的hibernate3jar包,依靠通常的方法是无法关联其相应版本的源代码的,只能使用下面这种方法来关联:

选择myeclipse菜单项:myeclipse-->Preference->Myeclipse->project Capabilities->hibernate , 选择相应的hibernate版本。如下图

Library modules中选择Hibernate 3.3 core Libraries模式,找到hibernate3.jar,展开选项,双击Source attachment 选项,在如下窗口中选择External Folder..

 

路径选择为.........\hibernate-distribution-3.3.2.GA\project\core\src\main\java即可!

posted @ 2014-03-05 19:02  红胡子的老人  阅读(372)  评论(0)    收藏  举报