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