private ReminderDao reminderDao;
@Override
public boolean persist(Mother mother) {
try {
Mother existingMother = motherDao.getById(mother.getSeqId());
if (existingMother != null) {
existingMother.setMotherId(mother.getMotherId());
existingMother.setFullName(mother.getFullName());
existingMother.setAge(mother.getAge());
existingMother.setLmp(mother.getLmp());
existingMother.setGott(mother.getGott());
existingMother.setEdd(mother.getEdd());
existingMother.setHealthWorker(mother.getHealthWorker());
motherDao.update(mother);
} else {
motherDao.save(mother);
}