Package com.ateam.webstore.dao

Examples of com.ateam.webstore.dao.EmployeeDAO


public class EmployeeService implements RepositoryService<Employee> {

  @Override
  public Employee store(Employee employee) {

    EmployeeDAO repository = new EmployeeDAO();
    return repository.save(employee);
   
  }
View Full Code Here


  }

  @Override
  public void remove(Employee employee) {

    EmployeeDAO repository = new EmployeeDAO();
    repository.delete(employee);
   
  }
View Full Code Here

  }

  @Override
  public Collection<Employee> getAll() {

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

  }

  @Override
  public Employee getById(Serializable id) {

    EmployeeDAO repository = new EmployeeDAO();
    return repository.get(id);
  }
View Full Code Here

TOP

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

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.