Add aspirant model
This commit is contained in:
parent
6ad4ea0083
commit
da65669c90
15
src/main/java/ru/ulstu/aspirant/model/Base.java
Normal file
15
src/main/java/ru/ulstu/aspirant/model/Base.java
Normal file
@ -0,0 +1,15 @@
|
||||
package ru.ulstu.aspirant.model;
|
||||
|
||||
public enum Base {
|
||||
BUDGET("бюджет"), COMMERCE("коммерческая");
|
||||
|
||||
private final String name;
|
||||
|
||||
Base(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
22
src/main/java/ru/ulstu/aspirant/model/Speciality.java
Normal file
22
src/main/java/ru/ulstu/aspirant/model/Speciality.java
Normal file
@ -0,0 +1,22 @@
|
||||
package ru.ulstu.aspirant.model;
|
||||
|
||||
public enum Speciality {
|
||||
S_2_3_7("2.3.7", "Системный анализ"),
|
||||
S_2_3_1("2.3.1", "Автоматизация проектирования");
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
||||
Speciality(String code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
17
src/main/java/ru/ulstu/manager/model/Manager.java
Normal file
17
src/main/java/ru/ulstu/manager/model/Manager.java
Normal file
@ -0,0 +1,17 @@
|
||||
package ru.ulstu.manager.model;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import ru.ulstu.model.BaseEntity;
|
||||
|
||||
@Entity
|
||||
public class Manager extends BaseEntity {
|
||||
private String name;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user