backend/buisnesslogic/src/main/java/com/plannaplan/entities/Groups.java

86 lines
1.6 KiB
Java
Raw Normal View History

package com.plannaplan.entities;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
2020-07-25 10:21:42 +02:00
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
2020-07-25 09:58:40 +02:00
import com.plannaplan.types.GroupType;
import com.plannaplan.types.WeekDay;
@Entity
public class Groups {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private Long courseId;
private int time;
private String room;
private int capacity;
2020-07-25 09:58:40 +02:00
private GroupType type;
private WeekDay day;
2020-07-25 10:21:42 +02:00
@ManyToOne
@JoinColumn(name = "lecturer_id")
private Lecturer lecturer;
public Groups() {
}
2020-07-25 10:21:42 +02:00
public Lecturer getLecturer() {
return lecturer;
}
public void setLecturer(Lecturer lecturer) {
this.lecturer = lecturer;
}
2020-07-25 09:58:40 +02:00
public WeekDay getDay() {
return day;
}
public void setDay(WeekDay day) {
this.day = day;
}
public GroupType getType() {
return type;
}
public void setType(GroupType type) {
this.type = type;
}
public int getCapacity() {
return capacity;
}
public void setCapacity(int capacity) {
this.capacity = capacity;
}
public String getRoom() {
return room;
}
public void setRoom(String room) {
this.room = room;
}
public int getTime() {
return time;
}
public void setTime(int time) {
this.time = time;
}
public Long getCourseId() {
return courseId;
}
public void setCourseId(Long courseId) {
this.courseId = courseId;
}
}