系統(tǒng)學(xué)習(xí)hibernate之三:transient、persistent、detached狀態(tài)
摘要: transient、persistent、detached狀態(tài),對于使用hibernate在開發(fā)過程中起著比較重要的意義。
閱讀全文
posted @
2008-10-09 20:51 apple0668 閱讀(462) |
評論 (0) 編輯
系統(tǒng)學(xué)習(xí)hibernate之二:Session中l(wèi)oad和get
摘要: hibernate中的Seesion兩個方法:get,load。get不支持lazy,load支持lazy。采用get加載數(shù)據(jù),如果沒有匹配的數(shù)據(jù),返回null,而load則拋出異常。
閱讀全文
posted @
2008-10-09 20:38 apple0668 閱讀(446) |
評論 (0) 編輯
系統(tǒng)學(xué)習(xí)hibernate之一:利用hibernate中的SchemaExport生成數(shù)據(jù)表
摘要: 一般在項目開發(fā)過程中,使用比較多的就是先建好表,再利用hibernate反向工程生成*.hbm.xml文件跟POJO類,個人認(rèn)為由于目前所使用的數(shù)據(jù)庫都是關(guān)系數(shù)據(jù)庫,而hibernate作為一個ORM,把對數(shù)據(jù)庫的操作都對象化了,更應(yīng)當(dāng)從對象出發(fā),生成數(shù)據(jù)庫里面相關(guān)表,這樣更加符合人認(rèn)知事物的習(xí)慣。
閱讀全文
posted @
2008-09-29 12:56 apple0668 閱讀(18641) |
評論 (5) 編輯
ssh2三大框架使用時遇到的一個ConstraintViolationException異常
摘要: ssh2三大框架整合時遇到的一個ConstraintViolationException異常。
閱讀全文
posted @
2008-01-21 10:39 apple0668 閱讀(5243) |
評論 (2) 編輯
Test-Driven Development with Spring and Hibernate(下載)
摘要: Test-Driven Development with Spring and Hibernate(下載),關(guān)于spring,hibernate測試方面的。
閱讀全文
posted @
2007-10-13 00:48 apple0668 閱讀(1244) |
評論 (0) 編輯
Spring 整合 Hibernate 的一處簡化配置<轉(zhuǎn)載>
摘要: 關(guān)于spring整合hibernate的簡化配置。。。。。。。
閱讀全文
posted @
2007-09-20 18:49 apple0668 閱讀(401) |
評論 (0) 編輯