已采納回答 / xamilanlover
使用hibernate的目的就是使用session來操作數據庫,而doWork使用的是jdbc的connection對象執行原生的SQL語句,這樣的話,使用hibernate就沒什么意義了。
2015-05-23