Guest User

Untitled

a guest
Jan 16th, 2019
153
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. userService = getInstance('userservice');
  2. roleService = getInstance('roleService');
  3.  
  4. user = userService.get(2);
  5. roles = roleService.get(1);
  6.  
  7. user.setFirstName("Bob");
  8. user.addRoles(roles);  
  9.  
  10. userService.save(user);
RAW Paste Data