Import von bestehenden CSV-Dateien
- CSV-Dateien im Verzeichniss "import" werden automatisch eingelesen
This commit is contained in:
29
src/main/java/de/etecture/ga/model/Garage.java
Normal file
29
src/main/java/de/etecture/ga/model/Garage.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user