| | |
| | | @JoinColumn(name="user_id") |
| | | private User user; |
| | | |
| | | @ManyToOne(fetch = FetchType.LAZY) |
| | | @JoinColumn(name="department_id") |
| | | private Department department; |
| | | |
| | | public ProjectRoleUser() { |
| | | } |
| | | |
| | |
| | | this.projectRole = projectRole; |
| | | this.user = user; |
| | | } |
| | | |
| | | //부서로 변경 |
| | | /*public ProjectRoleUser(ProjectRole projectRole, Department department) { |
| | | this.projectRole = projectRole; |
| | | this.department = department; |
| | | }*/ |
| | | |
| | | public Long getId() { |
| | | return id; |
| | |
| | | public void setUser(User user) { |
| | | this.user = user; |
| | | } |
| | | |
| | | public Department getDepartment() { |
| | | return department; |
| | | } |
| | | |
| | | public void setDepartment(Department department) { |
| | | this.department = department; |
| | | } |
| | | } |