问题:大家好,我正在使用 Richfaces 开展一个项目,我想显示我的数据库(MySQL)的最后 10 行,这是我用来显示保存在我的数据库 CompanyBean.java 中的所有行的代码的一部分代码:
public class EntrepriseBean implements Serializable{
private List<Entreprise> tableEntreprise ;
public List<Entreprise> getTableEntreprise() {
ud= new EntrepriseDAO();
tableEntreprise=ud.getAll();
return tableEntreprise;
}
public void setTableEntreprise(List<Entreprise> tableEntreprise) {
this.tableEntreprise = tableEntreprise;
}
}
如果您有任何想法,它将对我非常有用。谢谢你。