public void testRollback()
{
PersonnelOToOFKEntity person = new PersonnelOToOFKEntity();
person.setPersonId("1_p");
person.setPersonName("crossdata-store");
HabitatOToOFKEntity address = new HabitatOToOFKEntity();
address.setAddressId("1_a");
address.setStreet("my street");
person.setAddress(address);
try
{
em.persist(person);
}
catch (Exception ex)
{
HabitatOToOFKEntity found = em.find(HabitatOToOFKEntity.class, "1_a");
Assert.assertNull(found);
}
}