1
//$Id: VersionTest.java 14736 2008-06-04 14:23:42Z hardy.ferentschik $
2
package org.hibernate.test.annotations.various;
4
import org.hibernate.Session;
5
import org.hibernate.test.annotations.TestCase;
8
* @author Emmanuel Bernard
10
public class VersionTest extends TestCase {
12
public void testOptimisticLockDisabled() throws Exception {
13
Conductor c = new Conductor();
15
Session s = openSession( );
16
s.getTransaction().begin();
22
c = (Conductor) s.get( Conductor.class, c.getId() );
23
Long version = c.getVersion();
29
c = (Conductor) s.get( Conductor.class, c.getId() );
30
assertEquals( version, c.getVersion() );
32
s.getTransaction().rollback();
36
protected Class[] getMappings() {