Class UserModel

java.lang.Object
com.nnamo.models.UserModel

public class UserModel extends Object
Represents a user with a unique username and a hashed password.
  • Constructor Details

    • UserModel

      public UserModel()
      Empty constructor required by OrmLite.
    • UserModel

      public UserModel(String username, String passwordHash)
      Constructs a UserModel with the specified username and password hash.
      Parameters:
      username - the unique username
      passwordHash - the hashed password
  • Method Details

    • getId

      public int getId()
      Gets the unique identifier for the user.
      Returns:
      the user ID
    • getUsername

      public String getUsername()
      Gets the username of the user.
      Returns:
      the username
    • getPasswordHash

      public String getPasswordHash()
      Gets the hashed password of the user.
      Returns:
      the password hash