Examples of Employee


Examples of nl.amis.model2.types.Employee

            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())
              employee.setManager(emp.getMgr());
              employee.setName(emp.getEname());
              employee.setSalary(emp.getSal())
              department.getEmployees().add(employee);
            }   
            response.setDepartment(department);
            return response;
        }
View Full Code Here

Examples of nl.amis.model3.types.Employee

            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())
              employee.setManager(emp.getMgr());
              employee.setName(emp.getEname());
              employee.setSalary(emp.getSal())
              department.getEmployees().add(employee);
            }   
            response.setDepartment(department);
            return response;
        }
View Full Code Here

Examples of nl.amis.model4.types.Employee

          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())
            employee.setManager(emp.getMgr());
            employee.setName(emp.getEname());
            employee.setSalary(emp.getSal())
            department.getEmployees().add(employee);
          }   
          response.setDepartment(department);
          return response;
      }
View Full Code Here

Examples of no.ugland.utransprod.model.Employee

  /**
   * @param employee
   */
  public void setEmployee(Employee employee) {
    Employee oldEmployee = getEmployee();
    object.setEmployee(employee);
    firePropertyChange(PROPERTY_EMPLOYEE, oldEmployee, employee);
  }
View Full Code Here

Examples of org.adfemg.datacontrol.demo.persist.Employee

                    continue;
                }
                long empId = Long.parseLong(empIdStr);
                long deptId = Long.parseLong(deptIdStr);
                Department dept = ofy().load().key(Key.create(Department.class, deptId)).now();
                Employee emp = ofy().load().key(Key.create(Employee.class, empId)).now();
                dept.addEmployee(emp);
            }
            ofy().save().entities(depts).now();
        } catch (Exception e) {
            throw new ServletException(e);
View Full Code Here

Examples of org.apache.bval.jsr303.example.Employee

    public void testValidateArray() {
        Library lib = new Library();
        lib.setLibraryName("Unibibliothek");
        lib.setPersons(new Person[3]);
        lib.getPersons()[0] = new Employee("Marcel", "Reich-Ranicki");
        lib.getPersons()[1] = new Employee("Elke", "Heidenreich");
        lib.getPersons()[2] = new Customer(); // not validated, because only
        // getEmployees() is @Valid

        Set<ConstraintViolation<Library>> violations;
        violations = validator.validate(lib);
View Full Code Here

Examples of org.apache.cayenne.testdo.inherit.Employee

        CustomerRepresentative rep = context.newObject(CustomerRepresentative.class);
        rep.setName("Joe Schmoe");
        rep.setToClientCompany(company);
        rep.setPersonType("C");

        Employee employee = context.newObject(Employee.class);
        employee.setName("Our Joe Schmoe");
        employee.setPersonType("E");

        context.commitChanges();

        context = createDataContextWithDedicatedCache();
        SelectQuery query = new SelectQuery(CustomerRepresentative.class);
View Full Code Here

Examples of org.apache.cocoon.ojb.samples.bean.Employee

    public void retrieve(Employee bean, JdoPMF pmf) {
        /* 1. Get the PersistenceManager */
        PersistenceManager persistenceManager = pmf.getPersistenceManager();
       
        Employee e = new Employee();
        e.setId(bean.getId());
        PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker();
        Identity oid = new Identity(e, broker);
       
        Employee b = new Employee();
        //  2. start transaction
        persistenceManager.currentTransaction().begin();
        // 3. Get the Object based on the primary key
        b = (Employee) persistenceManager.getObjectById(oid, false);
        // 4. Copy data to bean
View Full Code Here

Examples of org.apache.commons.digester3.Employee

{

    @Test
    public void extractPropertyNameFromAttribute() throws Exception
    {
        Employee expected = new Employee( "John", "Doe" );

        Employee actual = newLoader( new FromXmlRulesModule()
        {

            @Override
            protected void loadRules()
            {
                loadXMLRules( getClass().getResource( "extractPropertyNameFromAttribute-rules.xml" ) );
            }

        } )
        .newDigester()
        .parse( getClass().getResource( "../extractPropertyNameFromAttribute.xml" ) );

        assertEquals( expected.getFirstName(), actual.getFirstName() );
        assertEquals( expected.getLastName(), actual.getLastName() );
    }
View Full Code Here

Examples of org.apache.crunch.test.Employee

        .parallelDo(mapFn, Avros.tableOf(Avros.ints(), Avros.records(Employee.class))).collectValues()
        .materializeToMap();

    assertEquals(1, collectionMap.size());

    Employee empC = mapFn.map("c").second();
    Employee empD = mapFn.map("d").second();
    Employee empA = mapFn.map("a").second();

    assertTrue(collectionMap.get(1).containsAll(Lists.newArrayList(empC, empD, empA)));
  }
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.