Package org.jrest4guice.sample.struts2.model

Examples of org.jrest4guice.sample.struts2.model.Department


@Repository(value="departmentDaoImpl")
public class DepartmentDaoImpl implements DepartmentDao {

  @Override
  public Department findById(long id) {
    Department department=new Department();
    department.setDeptid(id);
    department.setDeptname("�з���");
    return department;
  }
View Full Code Here


    return department;
  }

  @Override
  public void modify(Department t) {
    Department department=new Department();
    department.setDeptid(t.getDeptid());
    department.setDeptname("�з���");
    System.out.println(t.getDeptid()+","+t.getDeptname());
  }
View Full Code Here

  }

  @Override
  public List<Department> listAll() {
    List<Department> lists=new ArrayList<Department>();
    Department department;
    for (int i = 1; i <= 50; i++) {
      department=new Department();
      department.setDeptid(i);
      department.setDeptname("�з���");
      lists.add(department);
    }
    return lists;
  }
View Full Code Here

TOP

Related Classes of org.jrest4guice.sample.struts2.model.Department

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.