public class Question {
private int qid;//问题id
private Sting content;//问题题目内容
private Set<String> answers = new HashSet<String>();//问题待选答案
public Question(){
}
public Question(int qid, String content){
this.qid = qid;
this.content = content;
}
//getter() setter()
}实体类如上,请问answers属性如何在Question.hbm.xml中配置呢?
添加回答
举报
0/150
提交
取消