Class UserDao


public class UserDao extends Object
Data access object for User objects to simplify saving and retrieval.
  • Constructor Details

    • UserDao

      public UserDao()
  • Method Details

    • loadUser

      public static Optional<User> loadUser(String emailAddress)
      Retrieves the one user with this email address if it exists.
    • saveUser

      public static void saveUser(User user)
      Saves the given user, checking that no existing user already exists with this email.