Examples of Employee


Examples of com.domain.misc.Employee

        setProperty("id_var", "1234567890");
      }
    });
    Reader resource = Resources.getResourceAsReader("com/resources/nodelet_test.xml");
    parser.parse(resource);
    Employee emp = handler.getEmployee();
    assertEquals(1234567890, emp.getId());
    assertEquals("Jim", emp.getFirstName());
    assertEquals("Smith", emp.getLastName());
    assertEquals(new Date(1970 - 1900, 6 - 1, 15), emp.getBirthDate());
    assertEquals(5.8, emp.getHeight(), 0.0001);
    assertEquals("ft", emp.getHeightUnits());
    assertEquals(200, emp.getWeight(), 0.0001);
    assertEquals("lbs", emp.getWeightUnits());
  }
View Full Code Here

Examples of com.dyuproject.json.test.Employee

        String resource = "src/test/resources/com/dyuproject/json/test/employee.json";
        StandardJSON json = new StandardJSON();
        File file = new File(resource);
        BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file)));
        Map<String,Object> map = (Map<String,Object>)json.parse(new ReaderSource(reader));
        Employee e = (Employee)map.get("employee");
        assertTrue(e!=null);
        assertTrue("John".equals(e.getFirstName()));
        List<Task> tasks = e.getTasks();
        assertTrue(tasks!=null && tasks.size()==3);
        assertTrue("10".equals(tasks.get(0).getStatus()));
        assertTrue("15".equals(tasks.get(1).getStatus()));
        assertTrue("20".equals(tasks.get(2).getStatus()));
    }
View Full Code Here

Examples of com.dyuproject.protostuff.runtime.CollectionTest.Employee

   
    public void testEmployee() throws Exception
    {
        MappedSchema<Employee> schema = getSchema(Employee.class);
       
        Employee emp = CollectionTest.filledEmployee();
       
        roundTrip(emp, schema, schema.getPipeSchema());
    }
View Full Code Here

Examples of com.ebspos.model.Employee

    }
    return rands;
  }

  public void add() {
    Employee pojo = new Employee();
    Long id = getParaToLong(1, 0L);
    Long pid = getParaToLong(0, 0L);
//    Long orgid = getParaToLong(0, 0L);
    pojo.set("partmentid", pid);
//    pojo.set("orgid", orgid);
    if (id != 0) {
      pojo = Employee.dao.findById(id);
    }
//    setAttr(OrgSelectTarget.targetName, new OrgSelectTarget());
View Full Code Here

Examples of com.expositds.ars.domain.user.Employee

      outgoingPaymentEntity.setCompleted(source.isCompleted());
      outgoingPaymentEntity.setCreationDate(source.getCreationDate());
      outgoingPaymentEntity.setId(source.getId());
      outgoingPaymentEntity.setPaymentDate(source.getPaymentDate());

      Employee employee = ((OutgoingPayment) source).getRecipient();
      EmployeeEntity employeeEntity = null;
      if (employee instanceof Mechanic) {
        employeeEntity = DozerHelper.map(employee, MechanicEntity.class);
      }
      if (employee instanceof Employee) {
View Full Code Here

Examples of com.fasterxml.jackson.databind.struct.TestObjectId.Employee

                      + "{\"id\":1,\"name\":\"First\",\"manager\":2,\"reports\":[]},"
                      + "{\"id\":2,\"name\":\"Second\",\"manager\":null,\"reports\":[1]}"
                      + "]}";
        Company company = mapper.readValue(json, Company.class);
        assertEquals(2, company.employees.size());
        Employee firstEmployee = company.employees.get(0);
        Employee secondEmployee = company.employees.get(1);
        assertEquals(1, firstEmployee.id);
        assertEquals(2, secondEmployee.id);
        assertEquals(secondEmployee, firstEmployee.manager); // Ensure that forward reference was properly resolved.
        assertEquals(firstEmployee, secondEmployee.reports.get(0)); // And that back reference is also properly resolved.
    }
View Full Code Here

Examples of com.fengjing.framework.hibernate.model.Employee

    response.setContentType("text/html;charset=utf-8");
    PrintWriter writer = response.getWriter();
   
    try {
     
      Employee employee=new Employee();
     
      employee.setEmpname("����");
      employee.setSex("Ů");
      employee.setLocation("��������");
     
      Department department=new Department();
      department.setDeptname("���Բ�");
     
      employee.setDepartment(department);
     
      employeeService.add(employee);
     
      writer.write("<script type='text/javascript'>alert('����ɹ�!');</script>");
    } catch (Exception e) {
View Full Code Here

Examples of com.force.sdk.jpa.sample.Employee

     * @userStory xyz
     */
    public void testEntityNaming() {
        deleteAll("EmployeeEntity");
       
        Employee emp = new Employee();
        emp.setSalary(Long.valueOf(100));
        final String name = "Employee testEntityNaming";
        emp.setName(name);
       
        EntityTransaction tx = em.getTransaction();
        tx.begin();
        em.persist(emp);
        tx.commit();
View Full Code Here

Examples of com.getperka.flatpack.domain.Employee

  protected Configuration getConfiguration() {
    return new Configuration().withPrettyPrint(true).withVerbose(true);
  }

  protected Employee makeEmployee() {
    Employee toReturn = employees.get();
    toReturn.setEmployeeNumber(++counter);
    toReturn.setName("Employee Name");
    toReturn.getAddress().setStreet("street");
    return toReturn;
  }
View Full Code Here

Examples of com.google.code.lightssh.project.party.entity.Employee

   
    Organization org = partyManager.getOrganization(t.getOrganization().getId());
    if( org == null )
      throw new ApplicationException("部门信息["+t.getOrganization().getId()+"]不存在!");
   
    Employee db_e = get(p);
    if( db_e == null ){
      db_e = t;
      dao.create(db_e);
    }else{
      db_e.setOrganization(t.getOrganization());
      db_e.setStatus(t.getStatus());
      db_e.setType( t.getType() );
      db_e.setPosition( t.getPosition() );
      db_e.setWorkplace(t.getWorkplace());
      db_e.setEmploymentDate(t.getEmploymentDate());
      db_e.setDescription(t.getDescription());
      dao.update(db_e);
    }
  }
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.