由於myeclipse10最高只能關聯到hibernate3.3的版本,我關聯到3.5和4.2的版本後怎麼也查看不了。於是在http://ncu.dl.sourceforge.net/project/hibernate/hibernate3/3.3.2.GA/hibernate-distribution-3.3.2.GA-dist.zip下載了3.3.2的版本。
如何一次關聯,在其他項目中都能直接查看源碼,現在開始直接在myeclipse上動手腳。
步驟:
(一)選擇myeclipse菜單項選擇 myeclipse-->Preference->Myeclipse->project Capabilities->hibernate,選擇hibernate3.3,Library modules選擇Hibernate3.3Core library
(二) 雙擊source attachment,選擇core文件所在位置,點擊ok就可以了。