protected void update()
{
try
{
PersonnelUni1To1FK p = (PersonnelUni1To1FK) dao.findPerson(PersonnelUni1To1FK.class, "unionetoonefk_1");
Assert.assertNotNull(p);
// dao.merge(p); //This merge operation should do nothing since
// nothing has changed
// p = (PersonnelUni1To1FK) dao.findPerson(PersonnelUni1To1FK.class,
// "unionetoonefk_1");
p.setPersonName("Saurabh");
HabitatUni1To1FK address = p.getAddress();
address.setStreet("Brand New Street");
p.setAddress(address);
dao.merge(p);
PersonnelUni1To1FK pAfterMerge = (PersonnelUni1To1FK) dao.findPerson(PersonnelUni1To1FK.class,
"unionetoonefk_1");
assertPersonAfterUpdate(pAfterMerge);
}
catch (Exception e)
{