equal
deleted
inserted
replaced
98 task.setDescription(taskDescription.getValue().toString()); |
98 task.setDescription(taskDescription.getValue().toString()); |
99 try{ |
99 try{ |
100 EM.getTransaction().begin(); |
100 EM.getTransaction().begin(); |
101 EM.persist(task); |
101 EM.persist(task); |
102 EM.getTransaction().commit(); |
102 EM.getTransaction().commit(); |
|
103 EM.clear(); |
103 } finally { |
104 } finally { |
104 if(EM.getTransaction().isActive()) |
105 if(EM.getTransaction().isActive()) |
105 EM.getTransaction().rollback(); |
106 EM.getTransaction().rollback(); |
106 } |
107 } |
107 getParent().removeWindow(this); |
108 getParent().removeWindow(this); |