Package com.ateam.webstore.service.impl

Examples of com.ateam.webstore.service.impl.EmployeeRolesService.store()


                        e = service.registerEmployee(add.getFirstName(), add.getLastName(), add.getEmail(), add.getPw(), new Long(1), "foo", ssn, "Employee", new Date(new java.util.Date().getTime()), "A1", new Double(100000));
                        RoleService rs = new RoleService();
                        Role role = rs.getById(new Integer(add.getRoleId()));
                        EmployeeRoles er = new EmployeeRoles(new Date(new java.util.Date().getTime()), e, role);
                        EmployeeRolesService ers = new EmployeeRolesService();
                        ers.store(er);
                            rv.setMessage("Employee addition Complete");
                            add.setResultMessage("Employee successfull added");
                    } catch (Exception e1) {
                      if (e != null) {
                        service.remove(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.