Package ar.com.AmberSoft.iEvenTask.services

Source Code of ar.com.AmberSoft.iEvenTask.services.UpdateRelationCreateTaskService

package ar.com.AmberSoft.iEvenTask.services;

import java.util.Map;

import ar.com.AmberSoft.iEvenTask.backend.entities.Entity;
import ar.com.AmberSoft.iEvenTask.backend.entities.RelationWithActionCreateTask;
import ar.com.AmberSoft.util.ParamsConst;
@SuppressWarnings({"rawtypes"})
public class UpdateRelationCreateTaskService extends
    CreateRelationCreateTaskService {
 
  @Override
  public Entity getEntity(Map paramsthrows Exception {
    RelationWithActionCreateTask relation = (RelationWithActionCreateTask) super.getEntity(params);
    relation.setId((Integer) params.get(ParamsConst.ID));
    return relation;
  }
 
  @Override
  public Map onExecute(Map paramsthrows Exception {
    getSession().saveOrUpdate(getEntity(params));
    return null;
  }

}
TOP

Related Classes of ar.com.AmberSoft.iEvenTask.services.UpdateRelationCreateTaskService

TOP
Copyright © 2018 www.massapi.com. 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.