]> git.mxchange.org Git - jcontacts-core.git/commitdiff
Hmm, it may not be good if the object sets its own creation timestamp as this may...
authorRoland Haeder <roland@mxchange.org>
Tue, 12 Apr 2016 17:06:54 +0000 (19:06 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 12 Apr 2016 17:12:12 +0000 (19:12 +0200)
src/org/mxchange/jcontacts/contact/UserContact.java

index b59ef7096a0e82e6604d6953a905ea1e285e9dd1..8aeda22442d514c8002a5b05394bc16e1cdf6823 100644 (file)
@@ -19,7 +19,6 @@ package org.mxchange.jcontacts.contact;
 import java.util.Calendar;
 import java.util.Date;
 import java.util.Objects;
-import javax.annotation.PostConstruct;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
 import javax.persistence.Column;
@@ -209,6 +208,17 @@ public class UserContact implements Contact {
        @Column (name = "contact_zip_code", nullable = false, length = 6)
        private Integer contactZipCode;
 
+       /**
+        * Default constructor
+        */
+       public UserContact () {
+               // Default is not user's own contact
+               this.contactOwnContact = Boolean.FALSE;
+
+               // Unknown gender
+               this.contactGender = Gender.UNKNOWN;
+       }
+
        /**
         * Constructor for contactGender and names
         * <p>
@@ -217,7 +227,7 @@ public class UserContact implements Contact {
         * @param contactFamilyName Family name
         */
        public UserContact (final Gender contactGender, final String contactFirstName, final String contactFamilyName) {
-               // Call other constructor
+               // Call default constructor
                this();
 
                // Set all
@@ -226,14 +236,6 @@ public class UserContact implements Contact {
                this.contactFamilyName = contactFamilyName;
        }
 
-       /**
-        * Default constructor
-        */
-       public UserContact () {
-               // Default is not user's own contact
-               this.contactOwnContact = Boolean.FALSE;
-       }
-
        @Override
        public void copyAll (final Contact contact) {
                // Copy all:
@@ -475,15 +477,6 @@ public class UserContact implements Contact {
                this.contactZipCode = contactZipCode;
        }
 
-       /**
-        * Initialization with fake contactGender UNKNOWN
-        */
-       @PostConstruct
-       public void init () {
-               // Fake contactGender
-               this.contactGender = Gender.UNKNOWN;
-       }
-
        @Override
        public Boolean isOwnContact () {
                return this.contactOwnContact;