Import von bestehenden CSV-Dateien

- CSV-Dateien im Verzeichniss "import" werden automatisch eingelesen
This commit is contained in:
Matthias Engelien
2024-09-08 15:13:20 +02:00
parent 1f7dfee78f
commit a0cf2d1854
14 changed files with 409 additions and 12 deletions

View File

@@ -0,0 +1,29 @@
package de.etecture.ga.model;
import java.util.ArrayList;
import java.util.List;
import org.springframework.data.annotation.Id;
import lombok.Data;
@Data
public class Garage {
@Id
private Long id;
private String name;
private List<Appointment> appointments;
public Garage addAppointment(Appointment appointment) {
if(this.appointments == null) {
this.appointments = new ArrayList<>();
}
this.appointments.add(appointment);
return this;
}
}