The NoteBook of EricKong
BlogJava
::
首頁
::
聯系
::
聚合
::
管理
611 Posts :: 1 Stories :: 190 Comments :: 0 Trackbacks
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(11)
給我留言
查看公開留言
查看私人留言
我參與的團隊
隨筆分類
AIX(1)
Android(31)
AS400(39)
ASP(13)
C 編程(2)
C/C++(5)
CentOS(9)
DB2(1)
dojo(5)
Flex(14)
Git(3)
Hadoop(1)
Hibernate(15)
HTML(8)
Java(73)
JavaScript(34)
Jeekins(2)
JSP(7)
JVM(4)
LDAP(2)
Linux(42)
MAC Book/iOS(2)
Mainframe(71)
Maven(7)
MongoDB(3)
Node.js(4)
Oracle(2)
Socket(1)
Spring(6)
struts2(11)
Testing(1)
tomcat(11)
UML(1)
WebLogic (1)
WebShpere(13)
Window編程(2)
中醫養生(2)
學做菜(1)
安全駕駛(9)
巴西IT外包(3)
微信開發(6)
攝影(9)
數據庫(18)
日志管理(2)
桑巴葡萄牙語教學(19)
正則表達式(2)
硬件工程(11)
網絡知識(2)
網絡資源(9)
設計模式(19)
軟件測試
金融(1)
隨筆檔案
2021年8月 (1)
2015年8月 (1)
2015年7月 (14)
2015年6月 (19)
2015年5月 (5)
2015年3月 (13)
2015年2月 (2)
2015年1月 (10)
2014年12月 (17)
2014年11月 (15)
2014年10月 (5)
2014年9月 (3)
2014年8月 (5)
2014年7月 (3)
2014年6月 (2)
2014年5月 (6)
2014年4月 (2)
2014年3月 (8)
2014年2月 (2)
2014年1月 (20)
2013年12月 (10)
2013年11月 (16)
2013年10月 (11)
2013年9月 (10)
2013年8月 (32)
2013年7月 (16)
2013年6月 (26)
2013年5月 (5)
2013年4月 (1)
2013年3月 (4)
2013年2月 (1)
2012年12月 (8)
2012年11月 (2)
2012年10月 (1)
2012年9月 (3)
2012年8月 (10)
2012年7月 (8)
2012年6月 (7)
2012年5月 (7)
2012年4月 (10)
2012年3月 (5)
2012年2月 (11)
2012年1月 (1)
2011年12月 (41)
2011年11月 (6)
2011年10月 (1)
2011年7月 (11)
2011年6月 (9)
2011年5月 (13)
2011年4月 (2)
2011年2月 (1)
2010年12月 (1)
2010年11月 (4)
2010年10月 (6)
2010年9月 (27)
2010年8月 (12)
2010年7月 (16)
2010年6月 (28)
2010年5月 (26)
FLEX
Andriod annotation
Android Dev
AS3官方中文在線手冊
AS3語法手冊
BlazeDS 在線手冊
Command line reference
FlashDevelop
Flex教程
Flex資源網站
mainframe-tricks-and-tips
red5phone
simotime
大型機學習資料
淘寶API
淘寶API測試
艾睿論壇
獲取操作系統鏡像
MaimFrame
Cobol MQ
db2guide.blogspot.com
Delete Session
ibmtc.hust.edu.cn
IBMZOS資料
Mainframe Coder
Mainframe concept
Mainframe manuals
Texas400
Web mainframe
www.mainframes360.com
銀行IT人
優秀站點
Android studio
RIA英文資料
Sql Server Performance
嵌入式
openwrt
qemu openwrt
巴西葡語翻譯
Livemocha
MicroSoft Docs
廣交會-葡萄牙語翻譯
廣州-葡語-合同翻譯
常用鏈接
ajaxForm
blockUI
displaytag官方網
javascript 語法檢查
Jquery.Cookie
Jquery插件
json官方網
Linux中文man在線手冊
porlet
sproutcore javascript框架
strut2官方參考
UI tag
WebSphere
YUI官方網
共享童車
攝影
D3000的精彩
佳能攝影資料
尼康D3000論壇
蜂鳥攝影學院
網站推廣
koo4.cn
ubb_html轉換
網絡思維
萬方數據
微信測試
維普網
葡語翻譯
網絡資源
80集王洪圖詳解黃帝內經視頻
AS400網絡練習機
Badminton
CSS在線手冊
dubbo
Extjs在線手冊
Git教程
IBM AS400資料
igee
javascript在線美化
JEECG
jquery1.3中文在線幫助
Linux Shell
MSDN
Oauth
Oracle Java Archive
smarthosts
W3Cschool在線教程
中國移動充值
友情鏈接交換
存儲過程研究
家庭食品營養和烹飪
瀏覽器兼容性總結
淘寶開放平臺
站長工具箱
網上購物
葡萄語翻譯
育兒資料
實用工具
搜索
最新評論
1.?re: Portlet里面實現頁面的跳轉,并傳遞參數
;;
--‘
2.?re: Portlet里面實現頁面的跳轉,并傳遞參數
列表
--‘來了
3.?re: filter-mapping的執行順序和字符集設置的優先級
a
--d
4.?re: JavaScript中cookie的路徑(path)和域(domain)[未登錄]
123
--123
5.?re: filter-mapping的執行順序和字符集設置的優先級
s'd'f's'd
--范甘迪
閱讀排行榜
1.?HttpURLConnection學習(48862)
2.?Tomcat里 appBase和docBase的區別(26494)
3.?BaseExpandableListAdapter的用法(23253)
4.?Android 自定義Button按鈕顯示樣式(正常、按下、獲取焦點)(22264)
5.?關于An association from the table refers to an unmapped class(21611)
評論排行榜
1.?數據結構與算法視頻下載 北京大學張銘老師 視頻下載(23)
2.?IBM mainframe 模擬器Hercules 的安裝手順(19)
3.?HttpURLConnection學習(9)
4.?關于An association from the table refers to an unmapped class(8)
5.?王洪圖黃帝內經視頻下載(7)
關于An association from the table refers to an unmapped class
1,檢查你的hibernate.cfg.xml文件中是否添加了 <mapping resource="xxxx.hbm.xml"/>
2,檢查你的hibernate.cfg.xml文件中的相關聯的兩個<mapping resource=""/>的順序,可能有其中一個需要引用另一個,但是另一個卻還沒有編譯,就是說被用作外鍵的表要放在前面
3,檢查你的*.hbm.xml文件名是否正確
4, 檢查你的*.hbm.xml里面類全名
posted on 2010-05-12 15:24
Eric_jiang
閱讀(21611)
評論(8)
編輯
收藏
所屬分類:
Hibernate
Feedback
#
re: 關于An association from the table refers to an unmapped class
2011-06-13 23:36
bujidelebaba
頂。我一個個對照下去發現原來是hbm.xml里的類全名寫錯了
回復
更多評論
#
re: 關于An association from the table refers to an unmapped class
2011-06-13 23:40
bujidelebaba
哎,改了也還是不行不知道是哪里的問題
回復
更多評論
#
re: 關于An association from the table refers to an unmapped class
2011-06-14 01:06
bujidelebaba
問題終于解決了,我來分享一下我的問題,我的.hbm.xml是我利用database explore下的反向工程自動生成的,是放在src目錄下的,后來我轉移到了自建的bean目錄下,未將.hbm.xml中的class改正,如果放在src下默認只有類名,如<class="User">,我將它改成我現在的目錄<class="bean.User">就OK了
回復
更多評論
#
re: 關于An association from the table refers to an unmapped class[未登錄]
2012-09-23 11:29
ff
我還是沒有找到哪里的錯
回復
更多評論
#
re: 關于An association from the table refers to an unmapped class
2012-12-20 11:19
姓名
我說一下我的錯誤。主要是包弄錯了。<hibernate-mapping package="***.***">看看你是不是沒有定義包名而下面用到的class = “**”沒有用包名。我找了很長時間才知道。也是比較笨~
回復
更多評論
#
re: 關于An association from the table refers to an unmapped class
2013-01-10 17:17
ljmzy
@姓名
是的,我也犯錯了!該死!
回復
更多評論
#
re: 關于An association from the table refers to an unmapped class
2013-09-17 10:51
趙才會
hibernate.cfg.xml文件沒配置
回復
更多評論
#
re: 關于An association from the table refers to an unmapped class
2014-12-22 19:38
aiko
頂 我是**.hbm.xml中的類全名寫錯了
回復
更多評論
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
hibernate中set的排序
Hibernate主鍵生成策略
Equals and HashCode
hibernate 中 Criteria 的使用介紹
hibernate 3.0 多條件查詢方法
Hibernate中Criteria的完整用法
Hibernate 對象 三種狀態 瞬時態,持久態,脫管態 以及 save update saveOrUpdate merge等的使用
解決hibernate 刪除異常:deleted object would be re-saved by cascade (remove deleted object from
解決could not initialize proxy - the owning Session was closed的方法
關于An association from the table refers to an unmapped class
Copyright @ Eric_jiang
Powered by:
.Text
and
ASP.NET
Theme by:
.NET Monster
主站蜘蛛池模板:
仲巴县
|
砀山县
|
司法
|
浏阳市
|
泗水县
|
揭东县
|
汕头市
|
鹤峰县
|
犍为县
|
东乡县
|
呼图壁县
|
兴文县
|
辉县市
|
黔西
|
呈贡县
|
神池县
|
中卫市
|
曲周县
|
浮梁县
|
华容县
|
都兰县
|
阿拉善右旗
|
炎陵县
|
玉环县
|
安化县
|
长兴县
|
永昌县
|
马龙县
|
昭觉县
|
江津市
|
庆云县
|
衡阳市
|
探索
|
雅安市
|
庆城县
|
鲁山县
|
临泽县
|
陆川县
|
青龙
|
三明市
|
日照市
|