Corrections travail en groupe

This commit is contained in:
2008-02-24 18:25:37 +00:00
parent eff3cac3a7
commit 459770e802
2 changed files with 2 additions and 1 deletions

View File

@@ -93,6 +93,7 @@ public class ConferenceManagerBean implements IConferenceManager {
try { try {
ut.begin(); ut.begin();
Conference persistedConf = em.find(Conference.class, conf.getId()); Conference persistedConf = em.find(Conference.class, conf.getId());
persistedConf.setDescription(conf.getDescription());
persistedConf.setDateAbstract(conf.getDateAbstract()); persistedConf.setDateAbstract(conf.getDateAbstract());
persistedConf.setDateArticle(conf.getDateArticle()); persistedConf.setDateArticle(conf.getDateArticle());
persistedConf.setDateEnd(conf.getDateEnd()); persistedConf.setDateEnd(conf.getDateEnd());

View File

@@ -89,7 +89,7 @@ public class UserManagerBean implements IUserManager{
try { try {
ut.begin(); ut.begin();
User persistedUser = em.find(User.class, login); User persistedUser = em.find(User.class, login);
// Delete the articles for this user // Delete the articles for this user
Query articlesQuery = em.createQuery("from Article where mainauthor=?"); Query articlesQuery = em.createQuery("from Article where mainauthor=?");
articlesQuery.setParameter(1, persistedUser); articlesQuery.setParameter(1, persistedUser);