typetest.java

来自「hibernate3.2.6源码和jar包」· Java 代码 · 共 32 行

JAVA
32
字号
//$Id: TypeTest.java 11282 2007-03-14 22:05:59Z epbernard $package org.hibernate.test.annotations.type;import org.hibernate.Session;import org.hibernate.Transaction;import org.hibernate.test.annotations.TestCase;/** * @author Emmanuel Bernard */public class TypeTest extends TestCase {	public void testIdWithMulticolumns() throws Exception {		Session s;		Transaction tx;		s = openSession();		tx = s.beginTransaction();		Dvd lesOiseaux = new Dvd();		lesOiseaux.setTitle( "Les oiseaux" );		s.persist( lesOiseaux );		s.flush();		assertNotNull( lesOiseaux.getId() );		tx.rollback();		s.close();	}	protected Class[] getMappings() {		return new Class[]{				Dvd.class		};	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?