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.GAprojectcoresrcmainjava即可!

原文地址:https://www.cnblogs.com/honghuzidelaoren/p/3583158.html