hibernate 存储过程 事务
- 作者: 回忆_淡淡籴
- 来源: 51数据库
- 2021-01-11
tx = session.beginTransaction();
Connection con=session.connection();
String procedure = "{call batchUpdateCustomer() }";
CallableStatement cstmt = con.prepareCall(procedure);
cstmt.executeUpdate();
tx.commit();
batchUpdateCustomer----> 存储过程名
Connection con=session.connection();
String procedure = "{call batchUpdateCustomer() }";
CallableStatement cstmt = con.prepareCall(procedure);
cstmt.executeUpdate();
tx.commit();
batchUpdateCustomer----> 存储过程名
推荐阅读
