Examples of addEmployee()


Examples of com.centraview.hr.hremployee.EmployeeLocal.addEmployee()

      InitialContext ic = CVUtility.getInitialContext();
      EmployeeLocalHome home = (EmployeeLocalHome)ic.lookup("local/Employee");
      EmployeeLocal remote = (EmployeeLocal) home.create();
      remote.setDataSource(this.dataSource);

      empId = remote.addEmployee( userId,  individualID);

    }catch(Exception e)
    {
      System.out.println("[Exception][HrFacadeEJB.addEmployee] Exception Thrown: "+e);
      e.printStackTrace();
View Full Code Here

Examples of com.centraview.hr.hrfacade.HrFacadeLocal.addEmployee()

           for ( int i=0;i<size;i++)
           {
             ivo = (IndividualVO) IVOs.get(i);
             newId = indL.createIndividual(ivo,indId);
             empL.addEmployee(indId,newId);
             logger.info("Added " + newId + " individual record");
           }
         }catch(Exception e)
         {
           logger.debug("Error in adding Individuals : "+e);
View Full Code Here

Examples of com.expositds.ars.domain.billing.Subsidiary.addEmployee()

        .get(0);

    Subsidiary subsidiary = DozerHelper.map(subsidiaryEntity,
        Subsidiary.class);
    try {
      subsidiary.addEmployee(mechanic);
    } catch (EmployeeAlreadyExistsException e) {
      e.printStackTrace();
    }
    subsidiaryEntity = DozerHelper.map(subsidiary, SubsidiaryEntity.class);
    subsidiaryRepository.merge(subsidiaryEntity);
View Full Code Here

Examples of org.adfemg.datacontrol.demo.persist.Department.addEmployee()

                }
                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.openjpa.persistence.kernel.common.apps.PCDepartment.addEmployee()

        PCAddress addr1 = new PCAddress("Street1", "city1", country1);
        PCAddress addr2 = new PCAddress("Street2", "city2", country2);
        PCAddress caddr = new PCAddress("Street3", "city3", ccountry);

        dept1.addEmployee(emp1);
        dept2.addEmployee(emp2);

        company.addDepartment(dept1);
        company.addDepartment(dept2);

        company.setAddress(caddr);
View Full Code Here

Examples of org.apache.openjpa.persistence.kernel.common.apps.PCDepartment.addEmployee()

        PCAddress addr1 = new PCAddress("Street1", "city1", country1);
        PCAddress addr2 = new PCAddress("Street2", "city2", country2);
        PCAddress caddr = new PCAddress("Street3", "city3", ccountry);

        dept1.addEmployee(emp1);
        dept2.addEmployee(emp2);

        company.addDepartment(dept1);
        company.addDepartment(dept2);

        company.setAddress(caddr);
View Full Code Here

Examples of org.jboss.example.service.HRManager.addEmployee()

  public void testSalaryStrategy() throws Exception {
    HRManager manager = (HRManager) getBean("HRService");
    assertNotNull(manager);

    assertEquals(false, manager.isHiringFreeze());
    assertEquals(true, manager.addEmployee(rebecca));
    assertEquals((Integer) 10000, manager.getSalary(rebecca));
   
    // Test setting a salary using a location based salary strategy
    Employee employee = manager.getEmployee("Rebecca", "Jones");
    assertNotNull(employee);
View Full Code Here

Examples of org.jboss.example.service.HRManager.addEmployee()

  public void testSalaryStrategy() throws Exception {
    HRManager manager = (HRManager) getBean("HRService");
    assertNotNull(manager);

    assertEquals(false, manager.isHiringFreeze());
    assertEquals(true, manager.addEmployee(bob));
    assertEquals((Integer) 10000, manager.getSalary(bob));
   
    // Test setting a salary using an age based salary strategy
    Employee employee = manager.getEmployee("Bob", "Smith");
    assertNotNull(employee);
View Full Code Here

Examples of org.jboss.example.service.HRManager.addEmployee()

    HRManager manager = (HRManager) getBean("HRService");
    assertNotNull(manager);

    // Test add and remove (with and without a hiring freeze)
    assertEquals(true, manager.isHiringFreeze());
    assertEquals(false, manager.addEmployee(bob));
    assertEquals(0, manager.getEmployees().size());
   
    manager.setHiringFreeze(false);   
    assertEquals(false, manager.isHiringFreeze());
View Full Code Here

Examples of org.jboss.example.service.HRManager.addEmployee()

    assertEquals(0, manager.getEmployees().size());
   
    manager.setHiringFreeze(false);   
    assertEquals(false, manager.isHiringFreeze());

    assertEquals(true, manager.addEmployee(bob));
    assertEquals(1, manager.getEmployees().size());
    assertEquals((Integer) 10000, manager.getSalary(bob));
   
    // Test setting a salary without using a salary strategy
    Employee employee = manager.getEmployee("Bob", "Smith");
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.