Example #1
0
 /*
  * (non-Javadoc)
  *
  * @see
  * com.pfchoice.core.service.HospitalService#update(com.pfchoice.core.entity
  * .Hospital)
  */
 @Override
 public Hospital update(final Hospital bean) {
   Updater<Hospital> updater = new Updater<>(bean, Updater.UpdateMode.MAX);
   updater.exclude("createdBy");
   updater.exclude("createdDate");
   return hospitalDao.updateByUpdater(updater);
 }
 /*
  * (non-Javadoc)
  *
  * @see
  * com.pfchoice.core.service.FrequencyTypeService#update(com.pfchoice.core.
  * entity.FrequencyType)
  */
 @Override
 public FrequencyType update(final FrequencyType bean) {
   Updater<FrequencyType> updater = new Updater<>(bean, Updater.UpdateMode.MAX);
   updater.exclude("createdBy");
   updater.exclude("createdDate");
   return frequencyTypeDao.updateByUpdater(updater);
 }
  /*
   * (non-Javadoc)
   *
   * @see
   * com.pfchoice.core.service.HedisMeasureRuleService#update(com.pfchoice.
   * core.entity.HedisMeasureRule)
   */
  @Override
  public HedisMeasureRule update(final HedisMeasureRule bean) {
    Updater<HedisMeasureRule> updater = new Updater<>(bean, Updater.UpdateMode.MAX);
    updater.exclude("createdBy");
    updater.exclude("createdDate");

    return hedisMeasureRuleDao.updateByUpdater(updater);
  }