Methods Summary |
---|
public java.lang.String | getCacheConcurrencyStrategy()
// having second level cache causes a condition whereby the original test case would not fail...
return null;
|
public java.lang.String[] | getMappings()
return new String[] { "any/Person.hbm.xml" };
|
public static junit.framework.Test | suite()
return new FunctionalTestClassTestSuite( AnyTypeTest.class );
|
public void | testFlushProcessing()Specific test for HHH-1663...
Session session = openSession();
session.beginTransaction();
Person person = new Person();
Address address = new Address();
person.setData( address );
session.saveOrUpdate(person);
session.saveOrUpdate(address);
session.getTransaction().commit();
session.close();
session = openSession();
session.beginTransaction();
person = (Person) session.load( Person.class, person.getId() );
person.setName("makingpersondirty");
session.getTransaction().commit();
session.close();
session = openSession();
session.beginTransaction();
session.delete( person );
session.getTransaction().commit();
session.close();
|