Package com.ateam.webstore.dao

Examples of com.ateam.webstore.dao.RoleDAO


public class RoleService implements RepositoryService<Role> {

  @Override
  public Role store(Role role) {
   
    RoleDAO repository = new RoleDAO();
    return repository.save(role);
  }
View Full Code Here


  }

  @Override
  public void remove(Role role) {
   
    RoleDAO repository = new RoleDAO();
    repository.delete(role);
   
  }
View Full Code Here

  }

  @Override
  public Collection<Role> getAll() {
   
    RoleDAO repository = new RoleDAO();
    return repository.getAll();
  }
View Full Code Here

    return repository.getAll();
  }

  @Override
  public Role getById(Serializable id) {
    RoleDAO repository = new RoleDAO();
    return repository.get(id);
  }
View Full Code Here

TOP

Related Classes of com.ateam.webstore.dao.RoleDAO

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.