Package com.ateam.webstore.dao

Examples of com.ateam.webstore.dao.DepartmentDAO


public class DepartmentService implements RepositoryService<Department> {

  @Override
  public Department store(Department department) {

    DepartmentDAO repository = new DepartmentDAO();
    return repository.save(department);
   
  }
View Full Code Here


  }

  @Override
  public void remove(Department department) {

    DepartmentDAO repository = new DepartmentDAO();
    repository.delete(department);
   
  }
View Full Code Here

  }

  @Override
  public Collection<Department> getAll() {

    DepartmentDAO repository = new DepartmentDAO();
    return repository.getAll();
   
  }
View Full Code Here

   
  }

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

TOP

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

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.