Commit de l'installateur izPack

This commit is contained in:
2008-03-12 00:10:26 +00:00
parent 8c97b6a009
commit e145ddf2ac
19 changed files with 481 additions and 1 deletions

View File

@@ -238,11 +238,12 @@ public class ArticleManagerBean implements IArticleManager, Serializable {
return users;
}
@SuppressWarnings("unchecked")
public void delegateArticleToReferee(Integer articleId, String refereeId, String memberId){
try{
ut.begin();
Article article = this.getArticle(articleId);
//si la delegation est d<>j<EFBFBD> faite , on remplace le referee
// If there's already a delegation, replace the referee with the new one
Query q = em.createQuery("from Delegation where article = ?");
q.setParameter(1, article);
List<Delegation> delegations = q.getResultList();