Package database.entity
Class Account
java.lang.Object
database.entity.Account
Account class entity, which is to map data to Acount table in the database.
This class is used to store the username and password of the user.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for accountidGetter for passwordGetter for usernamevoidsetAccountid(Long userid) Setter for accountidvoidsetPassword(String password) Setter for passwordvoidsetUsername(String username) Setter for usernametoString()toString method for Account class
-
Field Details
-
accountid
accountid is the primary key of the table. It's generated automatically by the database. -
username
Username of the user. -
password
Password of the user.
-
-
Constructor Details
-
Method Details
-
getAccountid
Getter for accountid- Returns:
- - see
accountid
-
setAccountid
Setter for accountid- Parameters:
userid- - seeaccountid
-
getUsername
Getter for username- Returns:
- - see
username
-
setUsername
Setter for username- Parameters:
username- - seeusername
-
getPassword
Getter for password- Returns:
- - see
password
-
setPassword
Setter for password- Parameters:
password- - seepassword
-
toString
toString method for Account class
-