From: Roland Häder Date: Wed, 31 Aug 2016 14:15:02 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=709e8e454566d5f3fbaa582b91196eb74acd023e;p=pizzaservice-ejb.git Please cherry-pick: - maybe use getManagedUser() ? --- diff --git a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java index fed3db6..5fe89f8 100644 --- a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java @@ -649,7 +649,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS // Set all data here to avoid user instance become detached again entry.setUserPasswordHistoryPasswordHash(managedUser.getUserEncryptedPassword()); - entry.setUserPasswordHistoryUser(managedUser); + entry.setUserPasswordHistoryUser(this.getManagedUser(user)); entry.setUserPasswordHistoryCreated(new GregorianCalendar()); // Persist it