]> git.mxchange.org Git - juser-activity-core.git/commitdiff
it is now personal title, not gender
authorRoland Häder <roland@mxchange.org>
Sat, 22 Jul 2017 21:02:53 +0000 (23:02 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 22 Jul 2017 21:02:53 +0000 (23:02 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jusercore/model/user/activity/LogableUserActivity.java
src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java

index 226faa754931a9eb21c51ef1b99f8fa01f14f204..cfed88f56335cb41f9b6557f9de0358e05da25a0 100644 (file)
@@ -18,7 +18,7 @@ package org.mxchange.jusercore.model.user.activity;
 
 import java.io.Serializable;
 import java.util.Calendar;
-import org.mxchange.jcontacts.contact.gender.Gender;
+import org.mxchange.jcontacts.contact.title.PersonalTitle;
 import org.mxchange.jusercore.model.user.User;
 
 /**
@@ -159,14 +159,14 @@ public interface LogableUserActivity extends Serializable {
         * <p>
         * @return Contact gender
         */
-       Gender getActivityContactGender ();
+       PersonalTitle getActivityContactPersonalTitle ();
 
        /**
         * Setter for contact gender
         * <p>
-        * @param activityContactGender Contact gender
+        * @param activityContactPersonalTitle Contact gender
         */
-       void setActivityContactGender (final Gender activityContactGender);
+       void setActivityContactPersonalTitle (final PersonalTitle activityContactPersonalTitle);
 
        @Override
        boolean equals (final Object object);
index f89309aef1bcb6ff260818d4e88e2808004c0156..c0de715a7059827efbaca8e056b6a817348bffa7 100644 (file)
@@ -37,7 +37,7 @@ import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
 import javax.persistence.Transient;
-import org.mxchange.jcontacts.contact.gender.Gender;
+import org.mxchange.jcontacts.contact.title.PersonalTitle;
 import org.mxchange.jusercore.model.user.LoginUser;
 import org.mxchange.jusercore.model.user.User;
 
@@ -84,12 +84,12 @@ public class UserActivityLog implements LogableUserActivity {
        private String activityContactFirstName;
 
        /**
-        * Gender instance
+        * Personal title instance
         */
        @Basic (optional = false)
        @Column (name = "activity_contact_gender", nullable = false, updatable = false)
        @Enumerated (EnumType.STRING)
-       private Gender activityContactGender;
+       private PersonalTitle activityContactPersonalTitle;
 
        /**
         * Primary key
@@ -217,7 +217,7 @@ public class UserActivityLog implements LogableUserActivity {
 
                // Set all user/contact fields
                this.activityUserName = activityUser.getUserName();
-               this.activityContactGender = activityUser.getUserContact().getContactGender();
+               this.activityContactPersonalTitle = activityUser.getUserContact().getContactPersonalTitle();
                this.activityContactFirstName = activityUser.getUserContact().getContactFirstName();
                this.activityContactFamilyName = activityUser.getUserContact().getContactFamilyName();
        }
@@ -305,13 +305,13 @@ public class UserActivityLog implements LogableUserActivity {
        }
 
        @Override
-       public Gender getActivityContactGender () {
-               return this.activityContactGender;
+       public PersonalTitle getactivityContactPersonalTitle () {
+               return this.activityContactPersonalTitle;
        }
 
        @Override
-       public void setActivityContactGender (final Gender activityContactGender) {
-               this.activityContactGender = activityContactGender;
+       public void setactivityContactPersonalTitle (final PersonalTitle activityContactPersonalTitle) {
+               this.activityContactPersonalTitle = activityContactPersonalTitle;
        }
 
        @Override