From: Roland Häder Date: Tue, 26 Apr 2016 11:39:50 +0000 (+0200) Subject: copy id and other instances X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae5d60c0704f504b9b6f13f8affcb157783f03d9;p=pizzaservice-ejb.git copy id and other instances --- diff --git a/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java b/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java index d6adede..8d5a76f 100644 --- a/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java @@ -87,6 +87,10 @@ public class PizzaAdminCustomerSessionBean extends BasePizzaDatabaseBean impleme // Is a customer found? if (updatedContact instanceof Contact) { + // Set all entries + contact.setContactId(updatedContact.getContactId()); + this.setAllContactPhoneEntries(contact, updatedContact); + // Yes, then get updated version updatedContact = this.contactBean.updateContactData(contact);