Package net.freedom.gj.example.pojo

Examples of net.freedom.gj.example.pojo.Employee


    @Resource
    private EmployeeView ui;

    @PostConstruct
    public void runService(){
        Employee emp = Util.generateEmployee();
        Util.print(emp);

        service.save(emp);
       
        createUI();
View Full Code Here


    }

    public static Employee generateEmployee() {

        Employee e = new Employee();
        e.setActive(Boolean.TRUE);
        e.setAddress(new Address("57 Test STreet", "Sarasota", "FL", "30201"));
        e.setAgencyId(23);
        e.setCompanyid(34);
        e.setCompanyid(533);
        e.setId(3443);
        e.setEmail("test.me.@mail.com");
        e.setFirstName("See");
        e.setLastName("Vision");
        e.setHasAdminRights(Boolean.TRUE);
        e.setLoginid("ERD3443EES");
        e.setMiddle("Jozef");
        e.setPassword("someSecret");
        e.setSalutation("Mr");
        e.setStatus("ACTIVE");
        e.setUpdatedby("Demo");
        e.setUpdateddate(new Date());
        e.setUserid("2343243243242342343242324");
        e.setSuffix("suffix");
        List<Group> groups = new ArrayList<Group>();
        groups.add(new Group("EMPLOYEE"));
        groups.add(new Group("EMPADMIN"));

        e.setGroups(groups);

        return e;
    }
View Full Code Here

TOP

Related Classes of net.freedom.gj.example.pojo.Employee

Copyright © 2018 www.massapicom. 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.