task/3382: Harmonisera tabellnamn #6
@ -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;
|
||||||
|
@ -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`;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user