Package idv.takeshi.model

Examples of idv.takeshi.model.RoleRelationship


    insertRoleRelationships(person, roleRelationships);
  }

  private void insertRoleRelationships(
      Person person, List<RoleRelationship> roleRelationships) {
    RoleRelationship roleRelationship = null;
    Map<String, Object> paramsMap = null;
   
    //add all roleRelationships to DB
    for(int a = 0; a < roleRelationships.size(); a++){
      roleRelationship = roleRelationships.get(a);
      roleRelationship.setPersonId(person.getId());
     
      paramsMap = new HashMap<String, Object>();
      paramsMap.put("personId", roleRelationship.getPersonId());
      paramsMap.put("roleId", roleRelationship.getRoleId());
      paramsMap.put("accountName", person.getAccountName());
      paramsMap.put("roleName", roleRelationship.getRole().getName());
     
      this.getSqlSession().insert(MAPPER_NAMESPACE + "addRoleRelationship", paramsMap);
    }
  }
View Full Code Here

TOP

Related Classes of idv.takeshi.model.RoleRelationship

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.