]> git.mxchange.org Git - jcontacts-core.git/commitdiff
companyName is already in jcontacts-business-core
authorRoland Haeder <roland@mxchange.org>
Tue, 6 Oct 2015 11:58:16 +0000 (13:58 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 6 Oct 2015 11:58:16 +0000 (13:58 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcontacts/contact/Contact.java
src/org/mxchange/jcontacts/contact/UserContact.java

index 89a269cd3761abcc649290f1c8b83e2e57f27bc2..1ecef44d51de5d1266ae5ac0bf6dbad075cc326b 100644 (file)
@@ -91,20 +91,6 @@ public interface Contact extends Serializable {
         */
        public void setComment (final String comment);
 
-       /**
-        * Company name
-        * <p>
-        * @return the companyName
-        */
-       public String getCompanyName ();
-
-       /**
-        * Company name
-        * <p>
-        * @param companyName the companyName to set
-        */
-       public void setCompanyName (final String companyName);
-
        /**
         * Id number
         * <p>
index 0225e987a854f36cdb0e5b83ab112b14cc36f74c..546787a1555e02e3b4e37d7f6f38c061cb7531d7 100644 (file)
@@ -75,12 +75,6 @@ public class UserContact implements Contact, Comparable<Contact> {
        @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<Contact> {
         * @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<Contact> {
                // - 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<Contact> {
                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;