?? report.java
字號:
package ent.reportbean;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "report")
public class Report implements Serializable {
/**
*
*/
private static final long serialVersionUID = -7563531776948379472L;
private Integer id;
private String name;
private Integer classes;
private String reportname;
private String date;
private String number;
private String path;
public Report() {
}
public Report(String name, Integer classes, String reportname, String date,
String number, String path) {
this.name = name;
this.classes = classes;
this.reportname = reportname;
this.date = date;
this.number = number;
this.path = path;
}
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.AUTO)
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
@Column(name = "name", length = 255, nullable = false)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Column(name = "classes", length = 255, nullable = false)
public Integer getClasses() {
return classes;
}
public void setClasses(Integer classes) {
this.classes = classes;
}
@Column(name = "reportname", length = 255, nullable = false)
public String getReportname() {
return reportname;
}
public void setReportname(String reportname) {
this.reportname = reportname;
}
@Column(name = "date", length = 255, nullable = false)
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
@Column(name = "number", length = 255, nullable = false)
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
@Column(name = "path", length = 255)
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((id == null) ? 0 : id.hashCode());
return result;
}
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Report other = (Report) obj;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
return true;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -