Package com.nnamo.models
Class UserModel
java.lang.Object
com.nnamo.models.UserModel
Represents a user with a unique username and a hashed password.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getId()
Gets the unique identifier for the user.Gets the hashed password of the user.Gets the username of the user.
-
Constructor Details
-
UserModel
public UserModel()Empty constructor required by OrmLite. -
UserModel
Constructs a UserModel with the specified username and password hash.- Parameters:
username
- the unique usernamepasswordHash
- the hashed password
-
-
Method Details
-
getId
public int getId()Gets the unique identifier for the user.- Returns:
- the user ID
-
getUsername
Gets the username of the user.- Returns:
- the username
-
getPasswordHash
Gets the hashed password of the user.- Returns:
- the password hash
-