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

55 lines
1.1 KiB
Java
Raw Normal View History

2020-07-25 10:21:42 +02:00
package com.plannaplan.entities;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Lecturer {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String title;
private String name;
private String surname;
public String getTitle() {
return title;
}
public String getSurname() {
return surname;
}
public void setSurname(String surname) {
this.surname = surname;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public void setTitle(String title) {
this.title = title;
}
2020-07-28 18:04:38 +02:00
public Lecturer(String title, String name, String surname) {
this.title = title;
this.name = name;
this.surname = surname;
}
2020-08-08 14:14:42 +02:00
public Lecturer() {
}
2020-08-11 17:36:58 +02:00
@Override
public String toString() {
return String.format("%s %s %s", this.title, this.name, this.surname);
}
2020-07-25 10:21:42 +02:00
}