package de.springbootbuch.reactive.watchednow;

import java.time.ZonedDateTime;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Part of springbootbuch.de.
 *
 * @author Michael J. Simons
 * @author @rotnroll666
 */
@Document(collection = "film-watched-events")
public class FilmWatchedEvent {
	private String id;

	private final String filmId;

	private final String title;

	private final ZonedDateTime watchedOn;

	public FilmWatchedEvent(Film film) {
		this.filmId = film.getId();
		this.title = film.getTitle();
		this.watchedOn = ZonedDateTime.now();
	}

	public String getId() {
		return id;
	}

	public String getFilmId() {
		return filmId;
	}

	public String getTitle() {
		return title;
	}

	public ZonedDateTime getWatchedOn() {
		return watchedOn;
	}
}

@@ -58,21 +58,21 @@
 va.time.
-Zoned
+Local
 DateTime
@@ -335,30 +335,24 @@
 ;%0A%0A%09private 
-final 
 String filmI
@@ -364,22 +364,16 @@
 private 
-final 
 String t
@@ -392,19 +392,13 @@
 ate 
-final Zoned
+Local
 Date
@@ -414,16 +414,50 @@
 hedOn;%0A%0A
+%09public FilmWatchedEvent() %7B%0A%09%7D%0A%09%0A
 %09public 
@@ -567,21 +567,21 @@
 hedOn = 
-Zoned
+Local
 DateTime
@@ -630,24 +630,76 @@
 urn id;%0A%09%7D%0A%0A
+%09public void setId(String id) %7B%0A%09%09this.id = id;%0A%09%7D%0A%0A
 %09public Stri
@@ -748,108 +748,328 @@
 lic 
-String getTitle() %7B%0A%09%09return title;%0A%09%7D%0A%0A%09public ZonedDateTime getWatchedOn() %7B%0A%09%09return watchedOn;%0A%09%7D
+void setFilmId(String filmId) %7B%0A%09%09this.filmId = filmId;%0A%09%7D%0A%0A%09public String getTitle() %7B%0A%09%09return title;%0A%09%7D%0A%0A%09public void setTitle(String title) %7B%0A%09%09this.title = title;%0A%09%7D%0A%0A%09public LocalDateTime getWatchedOn() %7B%0A%09%09return watchedOn;%0A%09%7D%0A%0A%09public void setWatchedOn(LocalDateTime watchedOn) %7B%0A%09%09this.watchedOn = watchedOn;%0A%09%7D%09
 %0A%7D%0A

Simplify class