Hibernate JPA中insert插入數(shù)據(jù)后自動(dòng)執(zhí)行select last_insert_id()解決方法
posted on 2013-03-07 19:13 你爸是李剛 閱讀(2800) 評(píng)論(1) 編輯 收藏
jquery教程http://www.software8.co/wzjs/jquery/
posted on 2013-03-07 19:13 你爸是李剛 閱讀(2800) 評(píng)論(1) 編輯 收藏
hibernate.temp.use_jdbc_metadata_defaults 默認(rèn)為 true
這條配置開啟后 Hibernate在獲取connection之前,需要獲取相應(yīng)DB的META DATA信息,顧及下面的SQL就是與后面需要的META DATA有關(guān);
下面是找到資料,僅供參考哈!:)
// 'hibernate.temp.use_jdbc_metadata_defaults' is a temporary magic value.
// The need for it is intended to be alleviated with future development, thus it is not defined as an Environment constant...
//
// it is used to control whether we should consult the JDBC metadata to determine
// certain Settings default values; it is useful to *not* do this when the database
// may not be available (mainly in tools usage).
boolean useJdbcMetadata = ConfigurationHelper.getBoolean( "hibernate.temp.use_jdbc_metadata_defaults", configValues, true ); 回復(fù) 更多評(píng)論
只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。 | ||
![]() |
||
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
|
||
站長(zhǎng)網(wǎng) | 氟塑料離心泵 | 注塑機(jī) | 液晶廣告機(jī) |