Examples of Employee


Examples of com.mysema.query.sql.domain.Employee

    protected Employee employee;
   
    @Before
    public void setUp() {
        employee = new Employee();
        employee.setDatefield(new Date(0));
        employee.setFirstname("A");
        employee.setLastname("B");
        employee.setSalary(new BigDecimal(1.0));
        employee.setSuperiorId(2);
View Full Code Here

Examples of com.mysql.clusterj.jpatest.model.Employee

    public void deleteAll() {
        // delete all instances without verifying
        em = emf.createEntityManager();
        begin();
        for (int i = 0; i < getNumberOfEmployees(); ++i) {
            Employee e = em.find(Employee.class, i);
            if (e != null) {
                em.remove(e);
            }
        }
        commit();
View Full Code Here

Examples of com.rakaizsys.eims.model.emp.Employee

  }

  @Override
  protected DBObject createDBObject() {
    return new Employee();
  }
View Full Code Here

Examples of com.suarte.core.Employee

        return "editProfile";
    }

    public String add() {
        employee = new Employee();
        user = new User();
        user.setEnabled(true);
        user.addRole(new Role(Constants.USER_ROLE));

        return "add";
View Full Code Here

Examples of com.sun.facelets.bean.Employee

public final class JstlCoreTestCase extends FaceletTestCase {

    public void testIf() throws Exception {
        FacesContext faces = FacesContext.getCurrentInstance();
        Map session = faces.getExternalContext().getSessionMap();
        Employee e = new Employee();
        session.put("employee", e);

        FaceletFactory f = FaceletFactory.getInstance();
        Facelet at = f.getFacelet("if.xml");
       
        UIViewRoot root = faces.getViewRoot();

        // make sure the form is there
        e.setManagement(true);
        at.apply(faces, root);
        UIComponent c = root.findComponent("form");
        assertNotNull("form is null", c);
       
        // now make sure it isn't
        e.setManagement(false);
        at.apply(faces, root);
        c = root.findComponent("form");
        assertNull("form is not null", c);
    }
View Full Code Here

Examples of com.zesped.model.Employee

  @DefaultHandler
  public Resolution save() {
    final String sFormerId = getParam("employee.id");
    if (getErrorsCount()==0) {
      try {
        Employee oEmpl;
        connect(getSessionAttribute("nickname"), getSessionAttribute("password"));
        if (sFormerId.length()>0) {
            oEmpl = new Employee();
            oEmpl.load(getSession(), sFormerId);
        } else {
            TaxPayer oTxpr = new TaxPayer(getSession().getDms(), getParam("taxPayer"));
            oEmpl = new Employee(getSession(), oTxpr.employees(getSession()));
        }
        saveRequest(oEmpl);
        disconnect();
          addDataLine("uuid",oEmpl.getUuid());
          addDataLine("id",oEmpl.id());
      } catch (Exception xcpt) {
        Log.out.error(xcpt.getMessage(), xcpt);
        addError(new SimpleError(xcpt.getMessage()));
      } finally {
        close();
View Full Code Here

Examples of ctf.jdo.bugs.soak.model.Employee

       
        return e;
    }

    private Employee initEmployeeSecond() {
        Employee f = new Employee();
       
        f.setFirstName("Second");
        f.setLastName("Employee");
        f.setMiddleNameInitial('S');
        f.setGender('M');
        f.setPerm(true);
        f.setHourlyRate(new BigDecimal(30));
        f.setTotalHours(new BigDecimal(10));
        f.setSSN("000000002");
        f.setHoliday(0);
        f.setStartDate(Calendar.getInstance().getTime());
        f.setRecordDate(f.getStartDate());
        f.setRoomNumber(902);
        f.setHomeAddress(new Address("2", "South Pole", null, "Far South", "50471",
                "Nowhere", "000111"));
        f.setHomePhone(new Phone(123, 111, 1111111L));
        f.setSkills(new Vector());
        f.getSkills().add("Polar beer hunting");
        f.getSkills().add("Pengine riding");
       
        return f;
    }
View Full Code Here

Examples of de.huepattl.playground.arquillian.Employee

    public void testEmployeePersistence() throws Exception {
        long e1id = 0;
        long e2id = 0;

        // Employee #1: Create object and a clone used to verify persistence.
        final Employee e1 = new Employee(E1_NAME, E1_FNAME, E1_BIRTH);
        final Employee e1verify = new Employee(E1_NAME, E1_FNAME, E1_BIRTH);

        // Employee #2: Create object and a clone used to verify persistence.
        final Employee e2 = new Employee(E2_NAME, E2_FNAME, E2_BIRTH);
        final Employee e2verify = new Employee(E2_NAME, E2_FNAME, E2_BIRTH);

        /*
         * Persist and retrieve both objects.
         */
        e1id = employeeService.persist(e1).getId();
View Full Code Here

Examples of de.huepattl.playground.batch.Employee

     * @return Modified item, same class in this example ({@link de.huepattl.playground.batch.Employee}).
     * @throws Exception BAM!
     */
    @Override
    public Object processItem(Object item) throws Exception {
        Employee e = (Employee) item;
        e.setFirstName("Darth " + e.getFirstName());
        return e;
    }
View Full Code Here

Examples of de.huepattl.playground.validation.Employee

     *
     * @return Current employee instance.
     */
    public Employee getEmployee() {
        if (employee == null) {
            employee = new Employee();
            employee.setDateOfBirth(Date.valueOf(LocalDate.MIN));
        }
        return employee;
    }
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.