Rebase
This commit is contained in:
parent
be52740c53
commit
2f92dd3faa
7 changed files with 240 additions and 240 deletions
|
@ -1,43 +1,43 @@
|
|||
package de.szut.lf8_starter.project;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import org.springframework.data.annotation.CreatedDate;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "projects")
|
||||
public class ProjectEntity {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private long id;
|
||||
|
||||
private String name;
|
||||
|
||||
private long leadingEmployee;
|
||||
|
||||
@ElementCollection
|
||||
private List<Long> employees;
|
||||
|
||||
private long contractor;
|
||||
|
||||
private String contractorName;
|
||||
|
||||
private String comment;
|
||||
|
||||
@CreatedDate
|
||||
private LocalDate startDate;
|
||||
|
||||
private LocalDate plannedEndDate;
|
||||
|
||||
private LocalDate endDate;
|
||||
}
|
||||
package de.szut.lf8_starter.project;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import org.springframework.data.annotation.CreatedDate;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "projects")
|
||||
public class ProjectEntity {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private long id;
|
||||
|
||||
private String name;
|
||||
|
||||
private long leadingEmployee;
|
||||
|
||||
@ElementCollection
|
||||
private List<Long> employees;
|
||||
|
||||
private long contractor;
|
||||
|
||||
private String contractorName;
|
||||
|
||||
private String comment;
|
||||
|
||||
@CreatedDate
|
||||
private LocalDate startDate;
|
||||
|
||||
private LocalDate plannedEndDate;
|
||||
|
||||
private LocalDate endDate;
|
||||
}
|
||||
|
|
Reference in a new issue