Question: Hello everyone, I am working on a project with Richfaces I want to display the last 10 rows of my database (MySQL), this is part of the code I use to display all the rows saved in my database CompanyBean.java Code :
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;
}
}
if you have any idea it will be very useful for me. thank you.