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;
/**
* <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);
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;
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
// 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();
}
}
@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