import javax.ejb.Stateless;
import javax.persistence.NoResultException;
import javax.persistence.Query;
-import org.mxchange.jcontacts.contact.utils.ContactUtils;
import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
import org.mxchange.pizzaaplication.database.BasePizzaDatabaseBean;
/**
import javax.persistence.PersistenceException;
import javax.persistence.Query;
import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jcontacts.contact.ContactUtils;
import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
assert (updatedUser instanceof User) : MessageFormat.format("User with id {0} not found, but should be.", user.getUserId()); //NOI18N
// Copy all data
- updatedUser.copyAll(user);
+ UserUtils.copyAll(user, updatedUser);
// Set as updated
updatedUser.setUserUpdated(new GregorianCalendar());
assert (updatedUser instanceof User) : MessageFormat.format("User with id {0} not found, but should be.", user.getUserId()); //NOI18N
// Copy all data
- updatedUser.copyAll(user);
+ UserUtils.copyAll(user, updatedUser);
// Set as updated
updatedUser.setUserUpdated(new GregorianCalendar());
this.getLoggerBeanLocal().logDebug(MessageFormat.format("updateUserPersonalData: managedContact.contactId={0}", managedContact.getContactId())); //NOI18N
// Copy all
- managedContact.copyAll(user.getUserContact());
+ ContactUtils.copyAll(user.getUserContact(), managedContact);
// Set it back in user
user.setUserContact(managedContact);