📄 pergunta.java
字号:
package br.ufrj.cos.bri.model;
import java.io.Serializable;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity
public class Pergunta implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private long id;
private String numeroQuery;
private String numeroResultados;
private String query;
private List<ItemScore> itens;
@OneToMany(cascade=CascadeType.PERSIST)
public List<ItemScore> getItens() {
return itens;
}
public void setItens(List<ItemScore> itens) {
this.itens = itens;
}
@Id @GeneratedValue
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getNumeroQuery() {
return numeroQuery;
}
public void setNumeroQuery(String numeroQuery) {
this.numeroQuery = numeroQuery;
}
public String getNumeroResultados() {
return numeroResultados;
}
public void setNumeroResultados(String numeroResultados) {
this.numeroResultados = numeroResultados;
}
public String getQuery() {
return query;
}
public void setQuery(String query) {
this.query = query;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -