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=c7de932e50e08ddc6666612e0b0b8b7d30ef9449;p=pizzaservice-ejb.git Please cherry-pick: - opps, remove() --- diff --git a/src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java index 5fb5923..937fea9 100644 --- a/src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/PizzaAdminUserSessionBean.java @@ -148,7 +148,7 @@ public class PizzaAdminUserSessionBean extends BasePizzaDatabaseBean implements 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