You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
763 B
23 lines
763 B
package model;
|
|
|
|
import java.io.Serializable;
|
|
|
|
public class Author implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private String name;
|
|
private String introduction;
|
|
private int novelCount;
|
|
|
|
public String getName() { return name; }
|
|
public void setName(String name) { this.name = name; }
|
|
public String getIntroduction() { return introduction; }
|
|
public void setIntroduction(String introduction) { this.introduction = introduction; }
|
|
public int getNovelCount() { return novelCount; }
|
|
public void setNovelCount(int novelCount) { this.novelCount = novelCount; }
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Author{name='" + name + '\'' + ", novelCount=" + novelCount + '}';
|
|
}
|
|
}
|