Advertisement
Guest User

Untitled

a guest
Feb 14th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. username = generateUsername(name, year);
  2. while (repo.findByUsername(username))
  3. username = addSomeRandomChar(username, 1);
  4. password = "";
  5. password = addSomeRandomChar(password, 6);
  6. customer = new Customer(username, password, name, year);
  7. repo.save(customer);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement