Add aspirant model

This commit is contained in:
Anton Romanov 2025-01-29 14:13:47 +04:00
parent 6ad4ea0083
commit da65669c90
3 changed files with 54 additions and 0 deletions

View 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;
}
}

View 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;
}
}

View 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;
}
}