package kr.wisestone.owl.domain;
|
|
import javax.persistence.*;
|
import java.io.Serializable;
|
|
/**
|
* Created by wisestone on 2018-03-07.
|
*/
|
@Entity
|
public class IssueHosting extends BaseEntity implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
private Long id;
|
private String name;
|
private String code;
|
private String manager;
|
private String tel;
|
private String email;
|
private String memo;
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
@JoinColumn(name = "issue_id")
|
private Issue issue;
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
@JoinColumn(name = "hosting_id")
|
private HostingField hostingField;
|
|
public IssueHosting(){}
|
|
public IssueHosting(Issue issue, HostingField hostingField, String name, String code, String manager, String tel, String email, String memo){
|
this.issue = issue;
|
this.hostingField = hostingField;
|
this.name = name;
|
this.code = code;
|
this.manager = manager;
|
this.tel = tel;
|
this.email = email;
|
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 getCode() {
|
return code;
|
}
|
|
public void setCode(String code) {
|
this.code = code;
|
}
|
|
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 Issue getIssue() {
|
return issue;
|
}
|
|
public void setIssue(Issue issue) {
|
this.issue = issue;
|
}
|
|
public HostingField getHostingField() {
|
return hostingField;
|
}
|
|
public void setHostingField(HostingField hostingField) {
|
this.hostingField = hostingField;
|
}
|
}
|