From: Roland Haeder Date: Tue, 6 Oct 2015 11:58:16 +0000 (+0200) Subject: companyName is already in jcontacts-business-core X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=25cf79234279f4cbc2dc91000c40a41f887a4c10;p=jcontacts-core.git companyName is already in jcontacts-business-core Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcontacts/contact/Contact.java b/src/org/mxchange/jcontacts/contact/Contact.java index 89a269c..1ecef44 100644 --- a/src/org/mxchange/jcontacts/contact/Contact.java +++ b/src/org/mxchange/jcontacts/contact/Contact.java @@ -91,20 +91,6 @@ public interface Contact extends Serializable { */ public void setComment (final String comment); - /** - * Company name - *

- * @return the companyName - */ - public String getCompanyName (); - - /** - * Company name - *

- * @param companyName the companyName to set - */ - public void setCompanyName (final String companyName); - /** * Id number *

diff --git a/src/org/mxchange/jcontacts/contact/UserContact.java b/src/org/mxchange/jcontacts/contact/UserContact.java index 0225e98..546787a 100644 --- a/src/org/mxchange/jcontacts/contact/UserContact.java +++ b/src/org/mxchange/jcontacts/contact/UserContact.java @@ -75,12 +75,6 @@ public class UserContact implements Contact, Comparable { @Column (name = "comment") private String comment; - /** - * Company name - */ - @Column (name = "company_name", nullable = false) - private String companyName; - /** * Id number */ @@ -180,9 +174,8 @@ public class UserContact implements Contact, Comparable { * @param gender Gender instance * @param firstName First name * @param familyName Family name - * @param companyName Company name */ - public UserContact (final Gender gender, final String firstName, final String familyName, final String companyName) { + public UserContact (final Gender gender, final String firstName, final String familyName) { // Set all this.gender = gender; this.firstName = firstName; @@ -227,7 +220,6 @@ public class UserContact implements Contact, Comparable { // - base data this.setFirstName(contact.getFirstName()); this.setFamilyName(contact.getFamilyName()); - this.setCompanyName(contact.getCompanyName()); this.setStreet(contact.getStreet()); this.setZipCode(contact.getZipCode()); this.setCity(contact.getCity()); @@ -311,16 +303,6 @@ public class UserContact implements Contact, Comparable { this.comment = comment; } - @Override - public String getCompanyName () { - return this.companyName; - } - - @Override - public void setCompanyName (final String companyName) { - this.companyName = companyName; - } - @Override public Long getContactId () { return this.contactId;