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

45 lines
875 B
Java
Raw Normal View History

2020-07-25 10:56:11 +02:00
package com.plannaplan.entities;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity
public class Course {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String name;
private String symbol;
@OneToMany(mappedBy = "id")
private List<Groups> groups = new ArrayList<>();
public Course() {
}
2020-08-08 14:14:42 +02:00
public Long getId() {
return this.id;
}
2020-07-25 10:56:11 +02:00
public String getName() {
return name;
}
public String getSymbol() {
return symbol;
}
public void setSymbol(String symbol) {
this.symbol = symbol;
}
public void setName(String name) {
this.name = name;
}
}