package com.pollex.pam.domain;
|
|
import com.pollex.pam.enums.GenderEnum;
|
|
import javax.persistence.*;
|
import java.io.Serializable;
|
|
@Entity
|
@Table(name = "consultant")
|
public class Consultant extends AbstractAuditingEntity implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequenceGenerator")
|
@SequenceGenerator(name = "sequenceGenerator")
|
private Long id;
|
|
@Column(name = "agent_no", unique = true)
|
private String agentNo;
|
|
@Column(name = "name")
|
private String name;
|
|
@Column(name = "photo_path")
|
private String photoPath;
|
|
@Column(name = "expertise")
|
private String expertise;
|
|
@Column(name = "avg_score")
|
private Float avgScore;
|
|
@Column(name = "title")
|
private String title;
|
|
@Column(name = "role")
|
private String role;
|
|
@Column(name = "serve_area")
|
private String serveArea;
|
|
@Enumerated(value = EnumType.STRING)
|
@Column(name = "gender")
|
private GenderEnum gender;
|
|
@Column(name = "phone_number")
|
private String phoneNumber;
|
|
@Column(name = "company_address")
|
private String companyAddress;
|
|
@Column(name = "seniority_year")
|
private Long seniorityYear;
|
|
@Column(name = "seniority_month")
|
private Long seniorityMonth;
|
|
@Column(name = "concept")
|
private String concept;
|
|
@Column(name = "experience")
|
private String experience;
|
|
@Column(name = "award")
|
private String award;
|
|
@Column(name = "recommend")
|
private Boolean recommend;
|
|
@Column(name = "communication_style")
|
private String communicationStyle;
|
|
@Column(name = "email")
|
private String email;
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getAgentNo() {
|
return agentNo;
|
}
|
|
public void setAgentNo(String agentNo) {
|
this.agentNo = agentNo;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getPhotoPath() {
|
return photoPath;
|
}
|
|
public void setPhotoPath(String photoPath) {
|
this.photoPath = photoPath;
|
}
|
|
public String getExpertise() {
|
return expertise;
|
}
|
|
public void setExpertise(String expertise) {
|
this.expertise = expertise;
|
}
|
|
public Float getAvgScore() {
|
return avgScore;
|
}
|
|
public void setAvgScore(Float avgScore) {
|
this.avgScore = avgScore;
|
}
|
|
public String getTitle() {
|
return title;
|
}
|
|
public void setTitle(String title) {
|
this.title = title;
|
}
|
|
public String getRole() {
|
return role;
|
}
|
|
public void setRole(String role) {
|
this.role = role;
|
}
|
|
public String getServeArea() {
|
return serveArea;
|
}
|
|
public void setServeArea(String serveArea) {
|
this.serveArea = serveArea;
|
}
|
|
public GenderEnum getGender() {
|
return gender;
|
}
|
|
public void setGender(GenderEnum gender) {
|
this.gender = gender;
|
}
|
|
public String getPhoneNumber() {
|
return phoneNumber;
|
}
|
|
public void setPhoneNumber(String phoneNumber) {
|
this.phoneNumber = phoneNumber;
|
}
|
|
public String getCompanyAddress() {
|
return companyAddress;
|
}
|
|
public void setCompanyAddress(String companyAddress) {
|
this.companyAddress = companyAddress;
|
}
|
|
public Long getSeniorityYear() {
|
return seniorityYear;
|
}
|
|
public void setSeniorityYear(Long seniorityYear) {
|
this.seniorityYear = seniorityYear;
|
}
|
|
public Long getSeniorityMonth() {
|
return seniorityMonth;
|
}
|
|
public void setSeniorityMonth(Long seniorityMonth) {
|
this.seniorityMonth = seniorityMonth;
|
}
|
|
public String getSeniorityDTOString() {
|
final String seniorityYearString = this.seniorityYear != 0 ? this.seniorityYear + " 年 " : "";
|
final String seniorityMonthString = this.seniorityMonth != 0 ? this.seniorityMonth + " 月" : "";
|
|
return seniorityYearString + seniorityMonthString;
|
}
|
|
public String getConcept() {
|
return concept;
|
}
|
|
public void setConcept(String concept) {
|
this.concept = concept;
|
}
|
|
public String getExperience() {
|
return experience;
|
}
|
|
public void setExperience(String experience) {
|
this.experience = experience;
|
}
|
|
public String getAward() {
|
return award;
|
}
|
|
public void setAward(String award) {
|
this.award = award;
|
}
|
|
public Boolean getRecommend() {
|
return recommend;
|
}
|
|
public void setRecommend(Boolean recommend) {
|
this.recommend = recommend;
|
}
|
|
public String getCommunicationStyle() {
|
return communicationStyle;
|
}
|
|
public void setCommunicationStyle(String communicationStyle) {
|
this.communicationStyle = communicationStyle;
|
}
|
|
public String getEmail() {
|
return email;
|
}
|
|
public void setEmail(String email) {
|
this.email = email;
|
}
|
|
@Override
|
public String toString() {
|
return "Consultant{" +
|
"id=" + id +
|
", agentNo='" + agentNo + '\'' +
|
", name='" + name + '\'' +
|
", photoPath='" + photoPath + '\'' +
|
", expertise='" + expertise + '\'' +
|
", avgScore=" + avgScore +
|
", title='" + title + '\'' +
|
", role='" + role + '\'' +
|
", serveArea='" + serveArea + '\'' +
|
", gender=" + gender +
|
", phoneNumber='" + phoneNumber + '\'' +
|
", companyAddress='" + companyAddress + '\'' +
|
", seniorityYear=" + seniorityYear +
|
", seniorityMonth=" + seniorityMonth +
|
", concept='" + concept + '\'' +
|
", experience='" + experience + '\'' +
|
", award='" + award + '\'' +
|
", recommend=" + recommend +
|
", communicationStyle='" + communicationStyle + '\'' +
|
", email='" + email + '\'' +
|
'}';
|
}
|
}
|