@Override
protected void update()
{
// Find Person 1
PersonUM1 p1 = (PersonUM1) dao.findPerson(PersonUM1.class, "unimanytoone_1");
Assert.assertNotNull(p1);
p1.setPersonName("Saurabh");
p1.getAddress().setStreet("Brand New Street");
dao.merge(p1);
PersonUM1 p1AfterMerge = (PersonUM1) dao.findPerson(PersonUM1.class, "unimanytoone_1");
Assert.assertNotNull(p1AfterMerge);
Assert.assertEquals("Saurabh", p1AfterMerge.getPersonName());
Assert.assertEquals("Brand New Street", p1AfterMerge.getAddress().getStreet());
// Find Person 2
PersonUM1 p2 = (PersonUM1) dao.findPerson(PersonUM1.class, "unimanytoone_2");
Assert.assertNotNull(p2);
p2.setPersonName("Prateek");
dao.merge(p2);
PersonUM1 p2AfterMerge = (PersonUM1) dao.findPerson(PersonUM1.class, "unimanytoone_2");
Assert.assertNotNull(p2AfterMerge);
Assert.assertEquals("Prateek", p2AfterMerge.getPersonName());
}