protected Object buildOriginalObject() { Employee emp = new Employee(); emp.setFirstName("Sally"); emp.setLastName("Hamilton"); emp.setFemale(); return emp; }
protected void test() { UnitOfWork uow = getSession().acquireUnitOfWork(); Employee empInsert = new Employee(); empInsert.setFirstName("TestPerson"); empInsert.setFemale(); empInsert.setLastName("Smith"); empInsert.setSalary(55555); uow.registerObject(empInsert); uow.commit(); }