Examples of Dept


Examples of com.fengjing.framework.springmvc.model.Dept

  @Test
  public void save(){
   
    User user=new User();
    user.setUsername("��xx");
    Dept dept=new Dept();
    dept.setDeptname("�Ļ���");
    user.setDept(dept);
   
    User u = userService.save(user);
    Assert.notNull(u);
   
View Full Code Here

Examples of com.fengjing.framework.springmvc.model.Dept

  @Test
  public void modifyUser(){
   
    User user = userService.findUserById(1);
    user.setUsername("С��");
    Dept dept=user.getDept();
    dept.setDeptname("�з���");
    user.setDept(dept);
    userService.modifyUser(user);
   
  }
View Full Code Here

Examples of com.fengjing.framework.webservice.jaxws.model.Dept

    }

  @Override
  public List<User> getAllUsers() {
    List<User> lists=new ArrayList<User>();
    Dept dept;
    User user;
    for (int i = 1; i <= 100; i++) {
      user = new User();
      user.setName("name"+i);
      user.setAge(+i);
      user.setAddress("address"+i);
      dept=new Dept();
      dept.setDeptid(i);
      dept.setDeptname("deptname"+i);
      user.setDept(dept);
      lists.add(user);
    }
    return lists;
  }
View Full Code Here

Examples of com.fengjing.framework.webservice.jaxws.model.Dept

    }

  @WebMethod(operationName="getAllUsers")
  public List<User> getAllUsers() {
    List<User> lists=new ArrayList<User>();
    Dept dept;
    User user;
    for (int i = 1; i <= 100; i++) {
      user = new User();
      user.setName("name"+i);
      user.setAge(+i);
      user.setAddress("address"+i);
      dept=new Dept();
      dept.setDeptid(i);
      dept.setDeptname("deptname"+i);
      user.setDept(dept);
      lists.add(user);
    }
    return lists;
  }
View Full Code Here

Examples of nl.amis.model.entities.Dept

    private ObjectFactory obj = new ObjectFactory();

    public GetDeptFindByPKResponse getDepartment(GetDeptFindByPK parameters) {
      List<Dept> result = scottEJB.getDeptFindByPK(parameters.getId());
      if (result != null && result.size() > 0) {
          Dept dept = result.get(0);

          GetDeptFindByPKResponse response = obj.createGetDeptFindByPKResponse();
          Department department = obj.createDepartment();   
          department.setDepartmentNr(dept.getDeptno());
          department.setLocation(dept.getLoc());
          department.setName(dept.getDname());
         
          for ( Emp emp : dept.getEmpList()) {
            Employee employee = obj.createEmployee();
            employee.setCommission(emp.getComm())
            employee.setEmployeeNr(emp.getEmpno());                 
            employee.setHiredate(getXMLGregorianCalendar(emp.getHiredate()));
            employee.setJob(emp.getJob())
View Full Code Here

Examples of nl.amis.model.entities.Dept

    public GetDeptFindByPKResponse getDepartment(@WebParam(name = "getDepartmentRequest", partName = "parameters", targetNamespace = "http://nl.amis.hr.entities")
        GetDeptFindByPK parameters) {

        List<Dept> result = scottEJB.getDeptFindByPK(parameters.getId());
        if (result != null && result.size() > 0) {
            Dept dept = result.get(0);

            GetDeptFindByPKResponse response = obj.createGetDeptFindByPKResponse();
            Department department = obj.createDepartment();   
            department.setDepartmentNr(dept.getDeptno());
            department.setLocation(dept.getLoc());
            department.setName(dept.getDname());
           
            for ( Emp emp : dept.getEmpList()) {
              Employee employee = obj.createEmployee();
              employee.setCommission(emp.getComm())
              employee.setEmployeeNr(emp.getEmpno());                 
              employee.setHiredate(getXMLGregorianCalendar(emp.getHiredate()));
              employee.setJob(emp.getJob())
View Full Code Here

Examples of nl.amis.model.entities.Dept

                                                           targetNamespace = "http://nl.amis.hr.entities")
        GetDeptFindByPK parameters) {
        System.out.println("1");
        List<Dept> result = scottEJB.getDeptFindByPK(parameters.getId());
        if (result != null && result.size() > 0) {
            Dept dept = result.get(0);

            GetDeptFindByPKResponse response = obj.createGetDeptFindByPKResponse();
            Department department = obj.createDepartment();   
            department.setDepartmentNr(dept.getDeptno());
            department.setLocation(dept.getLoc());
            department.setName(dept.getDname());
           
            for ( Emp emp : dept.getEmpList()) {
              Employee employee = obj.createEmployee();
              employee.setCommission(emp.getComm())
              employee.setEmployeeNr(emp.getEmpno());                 
              employee.setHiredate(getXMLGregorianCalendar(emp.getHiredate()));
              employee.setJob(emp.getJob())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.