2024-09-25 09:33:42 +00:00
|
|
|
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;
|
|
|
|
|
2024-10-23 10:09:34 +02:00
|
|
|
@ElementCollection(fetch = FetchType.EAGER)
|
2024-09-25 09:33:42 +00:00
|
|
|
private List<Long> employees;
|
|
|
|
|
|
|
|
private long contractor;
|
|
|
|
|
|
|
|
private String contractorName;
|
|
|
|
|
|
|
|
private String comment;
|
|
|
|
|
|
|
|
@CreatedDate
|
|
|
|
private LocalDate startDate;
|
|
|
|
|
2024-09-25 11:03:47 +00:00
|
|
|
private LocalDate plannedEndDate;
|
|
|
|
|
2024-09-25 09:33:42 +00:00
|
|
|
private LocalDate endDate;
|
|
|
|
}
|