currentsessionconnectiontest.java

来自「好东西,hibernate-3.2.0,他是一开元的树杖hibernate-3.」· Java 代码 · 共 31 行

JAVA
31
字号
// $Id: CurrentSessionConnectionTest.java 9595 2006-03-10 18:14:21Z steve.ebersole@jboss.com $
package org.hibernate.test.connections;

import org.hibernate.Session;
import junit.framework.Test;
import junit.framework.TestSuite;

/**
 * Implementation of CurrentSessionConnectionTest.
 *
 * @author Steve Ebersole
 */
public class CurrentSessionConnectionTest extends AggressiveReleaseTest {

	public CurrentSessionConnectionTest(String name) {
		super( name );
	}

	public static Test suite() {
		return new TestSuite( 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 + =
减小字号Ctrl + -
显示快捷键?