From: Roland Häder Date: Mon, 29 Aug 2016 11:00:58 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6de43a194b2d99de0ce46dfef01228900598576f;p=jjobs-ejb.git Please cherry-pick: - opps, remove() --- diff --git a/src/java/org/mxchange/jusercore/model/user/JobsAdminUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/JobsAdminUserSessionBean.java index dd94cb0..4cbf2d5 100644 --- a/src/java/org/mxchange/jusercore/model/user/JobsAdminUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/JobsAdminUserSessionBean.java @@ -148,7 +148,7 @@ public class JobsAdminUserSessionBean extends BaseJobsDatabaseBean implements Ad assert (managedUser instanceof User) : MessageFormat.format("User with id {0} not found, but should be.", user.getUserId()); //NOI18N // Delete it - this.getEntityManager().refresh(managedUser); + this.getEntityManager().remove(managedUser); // Trace message this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.deleteUser: EXIT!", this.getClass().getSimpleName())); //NOI18N