Package org.sis.ancmessaging.domain

Examples of org.sis.ancmessaging.domain.Mother


  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);
      }
View Full Code Here


    @Override
    public boolean motherExists(String motherId) {
        Criteria criteria = getSession().createCriteria(Mother.class)
                .add(Restrictions.eq("motherId", motherId));
        Mother mother = (Mother) criteria.uniqueResult();
        return (mother != null);
    }
View Full Code Here

TOP

Related Classes of org.sis.ancmessaging.domain.Mother

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.