Skip to content

Instantly share code, notes, and snippets.

Created Jul 19, 2014
What would you like to do?
public class EmpRepositoryImpl implements EmployeeRepository {
protected EmpDao empDao;
public List<Employee> findAll() {
List<Employee> employeeList = Lists.newArrayList();
empDao.find().forEach(e ->
employeeList.add(new Employee(e.getEmpId(), e.getEmpName()))
return employeeList;
public int save(Employee emp) {
return Emp(emp.getId(),emp.getName())).getCount();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment