You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The most important thing you must ensure is that you close any sessions that you open. The best way to ensure this is to use the following unit of work pattern:</p>
// following 3 lines pseudocode for "doing some work"
267
+
session.insert(...);
268
+
session.update(...);
269
+
session.delete(...);
270
+
session.commit();
262
271
}</source>
263
272
<p><spanclass="label important">NOTE</span> Just like SqlSessionFactory, you can get the instance of Configuration that the SqlSession is using by calling the getConfiguration() method.</p>
0 commit comments