refactor: New formatter
parent
3f15379653
commit
2716ef99d6
|
@ -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;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import lombok.Data;
|
|||
@Entity
|
||||
@Data
|
||||
public class FormOfAddress {
|
||||
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
|
|
@ -5,7 +5,7 @@ import java.util.List;
|
|||
|
||||
@Entity
|
||||
public class PrimarySkill {
|
||||
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long psid;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue