- package org.ntlab.citrusserver.entities;
-
- import com.fasterxml.jackson.annotation.JsonIgnore;
-
- public class Account {
- private String introduction;
- @JsonIgnore
- private int bookcount = 0;
- @JsonIgnore
- private String accountId;
- @JsonIgnore
- private String password;
-
- public Account(String aid, String pass) {
- accountId = aid;
- password = pass;
- }
-
- public void setIntroduction(String i) {introduction = i;}
- public String getIntroduction() {return introduction;}
- @JsonIgnore
- public int getNewBookId() {
- bookcount += 1;
- return bookcount;
- }
- @JsonIgnore
- public int getBookCount() {return bookcount;}
-
- public void setId(String i) {accountId = i;}
- @JsonIgnore
- public String getId() {return accountId;}
- public void setPassword(String p) {password = p;}
- public String getPassword() {return password;}
-
- }