53 lines
1.0 KiB
Java
53 lines
1.0 KiB
Java
package ovh.herisson.Clyde.Tables;
|
|
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.GeneratedValue;
|
|
import jakarta.persistence.GenerationType;
|
|
import jakarta.persistence.Id;
|
|
|
|
@Entity
|
|
public class Course {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
|
private int courseID;
|
|
private int credits;
|
|
private String title;
|
|
private String faculty;
|
|
|
|
public Course(int credits, String title, String faculty){
|
|
this.credits = credits;
|
|
this.title = title;
|
|
this.faculty = faculty;
|
|
}
|
|
|
|
public Course() {}
|
|
|
|
public int getCourseID() {
|
|
return courseID;
|
|
}
|
|
|
|
public int getCredits() {
|
|
return credits;
|
|
}
|
|
|
|
public void setCredits(int credits){
|
|
this.credits = credits;
|
|
}
|
|
|
|
public String getFaculty() {
|
|
return faculty;
|
|
}
|
|
|
|
public void setFaculty(String faculty){
|
|
this.faculty = faculty;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title){
|
|
this.title = title;
|
|
}
|
|
}
|