📄 typetest.java
字号:
//$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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -