package kr.wisestone.owl.domain; import javax.persistence.*; import java.io.Serializable; /** * Created by wisestone on 2018-03-07. */ @Entity public class IssueCompany extends BaseEntity implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; private String manager; private String tel; private String email; private String url; private String memo; private String ipStart; private String ipEnd; private Long companyTypeId; private Long parentSectorId; private Long childSectorId; private Long regionId; private Long statusId; private String statusName; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "issue_id") private Issue issue; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "company_id") private CompanyField companyField; public IssueCompany(){} public IssueCompany(Issue issue, CompanyField companyField, String name, String manager, String tel, String email, String url, String memo){ this.issue = issue; this.companyField = companyField; this.name = name; this.manager = manager; this.tel = tel; this.email = email; this.url = url; this.memo = memo; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getManager() { return manager; } public void setManager(String manager) { this.manager = manager; } public String getTel() { return tel; } public void setTel(String tel) { this.tel = tel; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getMemo() { return memo; } public void setMemo(String memo) { this.memo = memo; } public String getIpStart() { return ipStart; } public void setIpStart(String ipStart) { this.ipStart = ipStart; } public String getIpEnd() { return ipEnd; } public void setIpEnd(String ipEnd) { this.ipEnd = ipEnd; } public Issue getIssue() { return issue; } public void setIssue(Issue issue) { this.issue = issue; } public CompanyField getCompanyField() { return companyField; } public void setCompanyField(CompanyField companyField) { this.companyField = companyField; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public Long getCompanyTypeId() { return companyTypeId; } public void setCompanyTypeId(Long companyTypeId) { this.companyTypeId = companyTypeId; } public Long getParentSectorId() { return parentSectorId; } public void setParentSectorId(Long parentSectorId) { this.parentSectorId = parentSectorId; } public Long getChildSectorId() { return childSectorId; } public void setChildSectorId(Long childSectorId) { this.childSectorId = childSectorId; } public Long getRegionId() { return regionId; } public void setRegionId(Long regionId) { this.regionId = regionId; } public Long getStatusId() { return statusId; } public void setStatusId(Long statusId) { this.statusId = statusId; } public String getStatusName() { return statusName; } public void setStatusName(String statusName) { this.statusName = statusName; } }