24 lines
519 B
Java
24 lines
519 B
Java
package de.etecture.ga.model;
|
|
|
|
import java.time.Duration;
|
|
|
|
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 GarageServices {
|
|
|
|
@Column("GARAGE_ID")
|
|
private AggregateReference<Garage, Long> garageId;
|
|
|
|
@Column("SERVICE_ID")
|
|
private AggregateReference<MDService, Long> serviceId;
|
|
|
|
private Duration duration;
|
|
|
|
}
|