private and course

This commit is contained in:
Filip Izydorczyk
2020-07-25 10:56:11 +02:00
parent 7db0d57a99
commit 44b6b794e0
7 changed files with 72 additions and 6 deletions

View File

@ -15,7 +15,9 @@ public class Groups {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private Long courseId;
@ManyToOne
@JoinColumn(name = "course_id")
private Course courseId;
private int time;
private String room;
private int capacity;
@ -76,11 +78,11 @@ public class Groups {
this.time = time;
}
public Long getCourseId() {
public Course getCourseId() {
return courseId;
}
public void setCourseId(Long courseId) {
public void setCourseId(Course courseId) {
this.courseId = courseId;
}
}