📄 bodymodel.java
字号:
package com.jdon.cms.model;
import java.util.*;
import com.jdon.cms.Body;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Jdon.com Copyright (c) 2003</p>
* <p>Company: </p>
* @author banq
* @version 1.0
*/
public class BodyModel extends BaseModel implements Body {
private Integer id = null;
private String title;
private String content;
private String date;
private String author;
private Integer hits;
private Integer status;
// this is for castor
public BodyModel() {
}
public BodyModel(Integer Id) {
this.id = Id;
}
public BodyModel(Integer Id, String title, String content, String date,
String author, Integer hits, Integer status) {
this.id = Id;
this.title = title;
this.content = content;
this.date = date;
this.author = author;
this.hits = hits;
this.status = status;
setNew(true);
}
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
setModified(true);
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
setModified(true);
}
public String getContent() {
return this.content;
}
public void setContent(String content) {
this.content = content;
setModified(true);
}
public String getAuthor() {
return this.author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getDate() {
return this.date;
}
public void setDate(String date) {
this.date = date;
}
public Integer getHits() {
return this.hits;
}
public void setHits(Integer hits) {
this.hits = hits;
}
public Integer getStatus() {
return this.status;
}
public void setStatus(Integer status) {
this.status = status;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -