debugging
This commit is contained in:
@@ -67,8 +67,11 @@ public class ArticleManagerBean implements IArticleManager, Serializable {
|
||||
if(conf == null){
|
||||
throw new ConferenceDoesntExistException();
|
||||
}
|
||||
Query query = em.createQuery("from Article a WHERE conference = ? ORDER BY a.title");
|
||||
|
||||
Query query = em.createQuery("from Article a WHERE a.conference = ? ORDER BY a.title");
|
||||
query.setParameter(1, conf);
|
||||
if (query.getResultList()!=null)
|
||||
{System.out.println("je fini ici ds articleBean");}
|
||||
return query.getResultList();
|
||||
}
|
||||
|
||||
@@ -80,6 +83,14 @@ public class ArticleManagerBean implements IArticleManager, Serializable {
|
||||
return query.getResultList();
|
||||
}
|
||||
|
||||
|
||||
/* @SuppressWarnings("unchecked")
|
||||
public List<Article> getAllArticles()
|
||||
{
|
||||
Query query =em.createQuery("SELECT a FROM Article a ORDER BY a.id");
|
||||
return query.getResultList();
|
||||
}*/
|
||||
|
||||
public List<Article> getArticlesOfMember(Conference conf, User member){
|
||||
//TODO
|
||||
return null;
|
||||
|
||||
@@ -79,13 +79,12 @@ public class Conference implements Serializable{
|
||||
}
|
||||
*/
|
||||
@Temporal(TemporalType.DATE)
|
||||
public Date getDataAbstract() {
|
||||
public Date getDateAbstract() {
|
||||
return dateAbstract;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
public void setDataAbstract(Date dataAbstract) {
|
||||
this.dateAbstract = dataAbstract;
|
||||
public void setDateAbstract(Date dateAbstract) {
|
||||
this.dateAbstract = dateAbstract;
|
||||
}
|
||||
@Temporal(TemporalType.DATE)
|
||||
public Date getDateArticle() {
|
||||
@@ -152,12 +151,12 @@ public class Conference implements Serializable{
|
||||
this.roles = new ArrayList<Role>();
|
||||
}
|
||||
|
||||
public Conference(String titre, String descirption, String infoComplementray, Date dataAbstract, Date dateArticle, Date dateEvaluation, Date dateStart, Date dateEnd) {
|
||||
public Conference(String titre, String descirption, String infoComplementray, Date dateAbstract, Date dateArticle, Date dateEvaluation, Date dateStart, Date dateEnd) {
|
||||
this();
|
||||
this.title = titre;
|
||||
this.description = descirption;
|
||||
this.otherInformations = infoComplementray;
|
||||
this.dateAbstract = dataAbstract;
|
||||
this.dateAbstract = dateAbstract;
|
||||
this.dateArticle = dateArticle;
|
||||
this.dateEvaluation = dateEvaluation;
|
||||
this.dateStart = dateStart;
|
||||
|
||||
Reference in New Issue
Block a user