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.
69 lines
1.5 KiB
69 lines
1.5 KiB
package com.spring.entity;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Table;
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
import net.jntoo.db.Query;
|
|
|
|
@Table(name = "lunbotu")
|
|
public class Lunbotu implements Serializable {
|
|
@GeneratedValue(generator = "JDBC") // 自增的主键映射
|
|
@Id
|
|
@Column(name = "id",insertable=false)
|
|
private Integer id;
|
|
|
|
@Column(name = "title")
|
|
private String title;
|
|
@Column(name = "image")
|
|
private String image;
|
|
@Column(name = "url")
|
|
private String url;
|
|
@Column(name = "addtime")
|
|
private String addtime;
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
public void setTitle(String title) {
|
|
this.title = title == null ? "" : title.trim();
|
|
}
|
|
|
|
public String getImage() {
|
|
return image;
|
|
}
|
|
public void setImage(String image) {
|
|
this.image = image == null ? "" : image.trim();
|
|
}
|
|
|
|
public String getUrl() {
|
|
return url;
|
|
}
|
|
public void setUrl(String url) {
|
|
this.url = url == null ? "" : url.trim();
|
|
}
|
|
|
|
public String getAddtime() {
|
|
return addtime;
|
|
}
|
|
public void setAddtime(String addtime) {
|
|
this.addtime = addtime == null ? "" : addtime.trim();
|
|
}
|
|
|
|
}
|