From: Roland Häder Date: Tue, 30 Aug 2016 10:22:13 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=50ee199f427af149d233d36e96adb1915a5daa49;p=pizzaservice-ejb.git Please cherry-pick: - unsetting contact is no longer needed, make it managed and then it should be fine ... :-) --- diff --git a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java index 6e8ab60..cf9e906 100644 --- a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java @@ -575,9 +575,6 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS throw new EJBException(MessageFormat.format("User with id {0} does not exist.", user.getUserId())); //NOI18N } - // Remove contact instance as this is not updated - user.setUserContact(null); - // Find the instance User managedUser = this.getEntityManager().find(user.getClass(), user.getUserId());