// Set fax number in contact
contact.setContactFaxNumber(faxNumber);
+ // Detach all phone entries before persisting it
+ this.detachAllContactPhoneEntries(contact);
+
// Update database
Contact updatedContact = this.contactBean.updateContactData(contact);
// Set land-line number in contact
contact.setContactLandLineNumber(landLineNumber);
+ // Detach all phone entries before persisting it
+ this.detachAllContactPhoneEntries(contact);
+
// Update database
Contact updatedContact = this.contactBean.updateContactData(contact);
// Set mobile number in contact
contact.setContactMobileNumber(mobileNumber);
+ // Detach all phone entries before persisting it
+ this.detachAllContactPhoneEntries(contact);
+
// Update database
Contact updatedContact = this.contactBean.updateContactData(contact);
// Set fax number in contact
contact.setContactFaxNumber(faxNumber);
+ // Detach all phone entries before persisting it
+ this.detachAllContactPhoneEntries(contact);
+
// Update database
Contact updatedContact = this.contactBean.updateContactData(contact);
// Set landLine number in contact
contact.setContactLandLineNumber(landLineNumber);
+ // Detach all phone entries before persisting it
+ this.detachAllContactPhoneEntries(contact);
+
// Update database
Contact updatedContact = this.contactBean.updateContactData(contact);
// Set mobile number in contact
contact.setContactMobileNumber(mobileNumber);
+ // Detach all phone entries before persisting it
+ this.detachAllContactPhoneEntries(contact);
+
// Update database
Contact updatedContact = this.contactBean.updateContactData(contact);
// Remove it from contact
contact.setContactFaxNumber(null);
+ // Detach all phone entries before persisting it
+ this.detachAllContactPhoneEntries(contact);
+
// Update database
Contact updatedContact = this.contactBean.updateContactData(contact);
// Remove it from contact
contact.setContactLandLineNumber(null);
+ // Detach all phone entries before persisting it
+ this.detachAllContactPhoneEntries(contact);
+
// Update database
Contact updatedContact = this.contactBean.updateContactData(contact);
// Remove it from contact
contact.setContactMobileNumber(null);
+ // Detach all phone entries before persisting it
+ this.detachAllContactPhoneEntries(contact);
+
// Update database
Contact updatedContact = this.contactBean.updateContactData(contact);