From 542c78385cee7d9c5890318aed2238850b5f6472 Mon Sep 17 00:00:00 2001 From: Markus Kreth Date: Tue, 28 Jan 2020 19:57:53 +0100 Subject: [PATCH] Notes with initial empty content --- .../vaadin/clubhelper/vaadinclubhelper/data/PersonNote.java | 4 ++-- .../vaadinclubhelper/ui/components/PersonEditDetails.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/data/PersonNote.java b/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/data/PersonNote.java index fe2be4e..af41c7c 100644 --- a/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/data/PersonNote.java +++ b/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/data/PersonNote.java @@ -22,9 +22,9 @@ public class PersonNote { @ManyToOne private Person person; - private String notekey; + private String notekey = ""; - private String notetext; + private String notetext = ""; public PersonNote() { } diff --git a/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/PersonEditDetails.java b/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/PersonEditDetails.java index 2ab6407..9eee54f 100644 --- a/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/PersonEditDetails.java +++ b/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/PersonEditDetails.java @@ -290,7 +290,8 @@ public class PersonEditDetails extends HorizontalLayout { && (binder.hasChanges() || contactLayout.hasChanges() || relationshipLayout.hasChanges() - || adressLayout.hasChanges()); + || adressLayout.hasChanges() + || notes.hasChanges()); } }