我有以下实体:
@Entity
public class Question {
@Id
@GeneratedValue
private Integer id;
private String content;
private boolean visible;
private Date displayDate;
}
数据库中始终只能看到一个问题。dataTable 中列表的要求是第一行必须是可见的 Question,其他行必须按 displayDate 排序。任何的想法?