private and course
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user