@@ -0,0 +1,2074 @@
+package ch.sportchef.business.event.entity;%0A%0Aimport ch.sportchef.business.adapter.LocalDateAdapter;%0Aimport ch.sportchef.business.adapter.LocalTimeAdapter;%0A%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.Version;%0Aimport javax.validation.constraints.NotNull;%0Aimport javax.validation.constraints.Size;%0Aimport javax.xml.bind.annotation.XmlAccessType;%0Aimport javax.xml.bind.annotation.XmlAccessorType;%0Aimport javax.xml.bind.annotation.XmlRootElement;%0Aimport javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;%0Aimport java.time.LocalDate;%0Aimport java.time.LocalTime;%0A%0A@Entity%0A@XmlRootElement%0A@XmlAccessorType(XmlAccessType.FIELD)%0Apublic class Event %7B%0A%0A    @Id%0A    @GeneratedValue%0A    private long eventId;%0A%0A    @Version%0A    private long version;%0A%0A    @Size(min = 1)%0A    private String title;%0A%0A    private String location;%0A%0A    @XmlJavaTypeAdapter(LocalDateAdapter.class)%0A    private LocalDate date;%0A%0A    @XmlJavaTypeAdapter(LocalTimeAdapter.class)%0A    private LocalTime time;%0A%0A    public Event() %7B%0A        super();%0A    %7D%0A%0A    public Event(final String title, final String location, final LocalDate date, final LocalTime time) %7B%0A        this.title = title;%0A        this.location = location;%0A        this.date = date;%0A        this.time = time;%0A    %7D%0A%0A    public long getEventId() %7B%0A        return eventId;%0A    %7D%0A%0A    public void setEventId(final long eventId) %7B%0A        this.eventId = eventId;%0A    %7D%0A%0A    public String getTitle() %7B%0A        return title;%0A    %7D%0A%0A    public void setTitle(@NotNull final String title) %7B%0A        this.title = title;%0A    %7D%0A%0A    public String getLocation() %7B%0A        return location;%0A    %7D%0A%0A    public void setLocation(final String location) %7B%0A        this.location = location;%0A    %7D%0A%0A    public LocalDate getDate() %7B%0A        return date;%0A    %7D%0A%0A    public void setDate(final LocalDate date) %7B%0A        this.date = date;%0A    %7D%0A%0A    public LocalTime getTime() %7B%0A        return time;%0A    %7D%0A%0A    public void setTime(final LocalTime time) %7B%0A        this.time = time;%0A    %7D%0A%0A%7D%0A

create the model class