Statement statement = conn.createStatement();
String sql = "SELECT postID,titleName,description,postDate,useName FROM forumitemlist,PersonalInformation WHERE forumitemlist.owner=PersonalInformation.id_pi";
ResultSet rs=statement.executeQuery(sql);
while(rs.next()){
itemList.add(new ItemSimple(rs.getString("postID"), rs.getString("titleName"), rs.getString("description"),
efrei.ngo.util.GeneralUnil.changeDateToGregorianCalendar(rs.getDate("postDate")), rs.getString("useName")));
}
statement.close();
}catch(Exception ex){
ex.printStackTrace();