refactor: New formatter

pull/1/head
Lunix-420 2024-10-28 12:29:22 +01:00
parent 3f15379653
commit 2716ef99d6
4 changed files with 22 additions and 22 deletions

View File

@ -7,23 +7,23 @@ import java.time.LocalTime;
@Entity
@Data
public class Employee {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private Integer employeeNr;
@Column(length = 100)
private String firstName;
@Column(length = 100)
private String lastName;
@ManyToOne
@JoinColumn(name = "AID")
private FormOfAddress formOfAddress;
@Column(length = 150)
private String mail;

View File

@ -6,7 +6,7 @@ import lombok.Data;
@Entity
@Data
public class FormOfAddress {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

View File

@ -5,7 +5,7 @@ import java.util.List;
@Entity
public class PrimarySkill {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long psid;

View File

@ -6,23 +6,23 @@ import lombok.Data;
@Entity
@Data
public class SkillAssignment {
public enum SkillLevel {
ONE, TWO, THREE, FOUR, FIVE;
}
public enum SkillLevel {
ONE, TWO, THREE, FOUR, FIVE;
}
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@ManyToOne
@JoinColumn(name = "EID", nullable = false)
private Employee employee;
@ManyToOne
@JoinColumn(name = "EID", nullable = false)
private Employee employee;
@ManyToOne
@JoinColumn(name = "SSID", nullable = false)
private SecondarySkill secondarySkill;
@ManyToOne
@JoinColumn(name = "SSID", nullable = false)
private SecondarySkill secondarySkill;
@Column(nullable = false)
@Enumerated(EnumType.ORDINAL)
private SkillLevel level;
@Column(nullable = false)
@Enumerated(EnumType.ORDINAL)
private SkillLevel level;
}