task/3382: Harmonisera tabellnamn #6

Merged
ansv7779 merged 104 commits from task/3382 into develop 2024-11-12 13:33:44 +01:00
2 changed files with 9 additions and 5 deletions
Showing only changes of commit eb28f423af - Show all commits

View File

@ -1,24 +1,23 @@
package se.su.dsv.scipro.nonworkperiod; package se.su.dsv.scipro.nonworkperiod;
import jakarta.persistence.GenerationType; import jakarta.persistence.*;
import se.su.dsv.scipro.system.DomainObject; import se.su.dsv.scipro.system.DomainObject;
import jakarta.persistence.Cacheable;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import java.time.LocalDate; import java.time.LocalDate;
import java.util.Objects; import java.util.Objects;
@Entity @Entity
@Cacheable(true) @Cacheable(true)
@Table(name = "non_work_day_period")
public class NonWorkDayPeriod extends DomainObject { public class NonWorkDayPeriod extends DomainObject {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id; private Long id;
@Column(name = "start_date")
private LocalDate startDate; private LocalDate startDate;
@Column(name = "end_date")
private LocalDate endDate; private LocalDate endDate;
private String comment; private String comment;

View File

@ -376,5 +376,10 @@ alter table `worker_data` rename column `lastSuccessfulRun` to `last_successful_
alter table `footer_link` rename column `footerColumn` to `footer_column`; alter table `footer_link` rename column `footerColumn` to `footer_column`;
-- table: NonWorkDayPeriod
alter table `NonWorkDayPeriod` rename column `endDate` to `end_date`;
alter table `NonWorkDayPeriod` rename column `startDate` to `start_date`;
rename table `NonWorkDayPeriod` to `non_work_day_period`;