This commit is contained in:
@@ -27,7 +27,12 @@ public class ArticleManagerBean implements IArticleManager, Serializable {
|
||||
}
|
||||
|
||||
public void addArticle(Article a) {
|
||||
em.persist(a);
|
||||
try{
|
||||
em.persist(a);
|
||||
}
|
||||
catch(Exception e){
|
||||
System.out.println("blurp!!!!!");
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -36,10 +41,6 @@ public class ArticleManagerBean implements IArticleManager, Serializable {
|
||||
}
|
||||
|
||||
public void updateArticle(Article article) {
|
||||
/*removeArticle(getArticle(id));
|
||||
newArticle.setId(id);
|
||||
addArticle(newArticle);
|
||||
em.flush();*/
|
||||
em.merge(article);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user