currentsessionconnectiontest.java
来自「hibernate 开源框架的代码 jar包希望大家能喜欢」· Java 代码 · 共 32 行
JAVA
32 行
// $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 + =
减小字号Ctrl + -
显示快捷键?