Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package tel_ran.model.entities;
- import org.springframework.data.annotation.Id;
- import org.springframework.data.mongodb.core.mapping.Document;
- @Document(collection = "accounts")
- public class Account {
- @Id
- private String userName;
- private String password;
- private String role;
- public Account(String userName, String password, String role) {
- this.userName = userName;
- this.password = password;
- this.role = role;
- }
- public String getUserName() {
- return userName;
- }
- public void setUserName(String userName) {
- this.userName = userName;
- }
- public String getPassword() {
- return password;
- }
- public void setPassword(String password) {
- this.password = password;
- }
- public String getRole() {
- return role;
- }
- public void setRole(String role) {
- this.role = role;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement