📄 currentsessionconnectiontest.java
字号:
// $Id: CurrentSessionConnectionTest.java 10977 2006-12-12 23:28:04Z steve.ebersole@jboss.com $package org.hibernate.test.connections;import junit.framework.Test;import org.hibernate.Session;import org.hibernate.junit.functional.FunctionalTestClassTestSuite;/** * Implementation of CurrentSessionConnectionTest. * * @author Steve Ebersole */public class CurrentSessionConnectionTest extends AggressiveReleaseTest { public CurrentSessionConnectionTest(String name) { super( name ); } public static Test suite() { return new FunctionalTestClassTestSuite( CurrentSessionConnectionTest.class ); } protected Session getSessionUnderTest() throws Throwable { return getSessions().getCurrentSession(); } protected void release(Session session) { // do nothing, txn synch should release session as part of current-session definition }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -