📄 scores.java
字号:
package test;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
* Scores generated by MyEclipse Persistence Tools
*/
@Entity
@Table(name = "scores", catalog = "student", uniqueConstraints = {})
public class Scores implements java.io.Serializable {
// Fields
private Integer scoresId;
private Stuinfo stuinfo;
private Float java;
private Float jsp;
private Float oracle;
private Float windows;
// Constructors
/** default constructor */
public Scores() {
}
/** full constructor */
public Scores(Integer scoresId, Stuinfo stuinfo, Float java, Float jsp,
Float oracle, Float windows) {
this.scoresId = scoresId;
this.stuinfo = stuinfo;
this.java = java;
this.jsp = jsp;
this.oracle = oracle;
this.windows = windows;
}
// Property accessors
@Id
@Column(name = "scoresId", unique = true, nullable = false, insertable = true, updatable = true)
public Integer getScoresId() {
return this.scoresId;
}
public void setScoresId(Integer scoresId) {
this.scoresId = scoresId;
}
@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
@JoinColumn(name = "stuId", unique = false, nullable = false, insertable = true, updatable = true)
public Stuinfo getStuinfo() {
return this.stuinfo;
}
public void setStuinfo(Stuinfo stuinfo) {
this.stuinfo = stuinfo;
}
@Column(name = "Java", unique = false, nullable = false, insertable = true, updatable = true, precision = 12, scale = 0)
public Float getJava() {
return this.java;
}
public void setJava(Float java) {
this.java = java;
}
@Column(name = "jsp", unique = false, nullable = false, insertable = true, updatable = true, precision = 12, scale = 0)
public Float getJsp() {
return this.jsp;
}
public void setJsp(Float jsp) {
this.jsp = jsp;
}
@Column(name = "oracle", unique = false, nullable = false, insertable = true, updatable = true, precision = 12, scale = 0)
public Float getOracle() {
return this.oracle;
}
public void setOracle(Float oracle) {
this.oracle = oracle;
}
@Column(name = "windows", unique = false, nullable = false, insertable = true, updatable = true, precision = 12, scale = 0)
public Float getWindows() {
return this.windows;
}
public void setWindows(Float windows) {
this.windows = windows;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -