package de.dhbw.contactdb; import java.time.LocalDateTime; public class Besuch { private LocalDateTime start; private LocalDateTime end; private Person person; private Ort ort; public Besuch(String s) { } public Besuch(LocalDateTime start, LocalDateTime end, Person person, Ort ort) { this.start = start; this.end = end; this.person = person; this.ort = ort; } public LocalDateTime getStart() { return start; } public void setStart(LocalDateTime start) { this.start = start; } public LocalDateTime getEnd() { return end; } public void setEnd(LocalDateTime end) { this.end = end; } public Person getPerson() { return person; } public void setPerson(Person person) { this.person = person; } public Ort getOrt() { return ort; } public void setOrt(Ort ort) { this.ort = ort; } @Override public String toString() { return "Besuch{" + "start=" + start + ", end=" + end + ", person=" + person + ", ort=" + ort + '}'; } }