36 lines
749 B
Java
36 lines
749 B
Java
package de.etecture.ga.model;
|
|
|
|
import java.time.Duration;
|
|
import java.util.Date;
|
|
|
|
import org.springframework.data.annotation.Id;
|
|
import org.springframework.data.jdbc.core.mapping.AggregateReference;
|
|
import org.springframework.data.relational.core.mapping.Column;
|
|
|
|
import lombok.Data;
|
|
import lombok.experimental.Accessors;
|
|
|
|
@Data
|
|
@Accessors(fluent = true, chain = true)
|
|
public class Appointment {
|
|
|
|
@Id
|
|
private Long id;
|
|
|
|
@Column("GARAGE_ID")
|
|
private AggregateReference<Garage, Long> garageId;
|
|
|
|
@Column("SERVICE_ID")
|
|
private AggregateReference<MDService, Long> serviceId;
|
|
|
|
private String serviceCode;
|
|
|
|
private String serviceName;
|
|
|
|
private Date appointmentTime;
|
|
|
|
private Integer slot = 1;
|
|
|
|
private Duration duration = Duration.ZERO;
|
|
}
|