From ab4d9c4440a4fcf5246f01b40d6c12dd7a1dfeb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 16 Apr 2020 17:52:48 +0200 Subject: [PATCH] Continued: - renamed openingCreated to openingTimeEntryCreated - added optional openingTimeEntryUpdated MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../opening_time/BusinessOpeningTime.java | 59 ++++++++++++------- .../model/opening_time/OpeningTime.java | 20 ++++++- 2 files changed, 56 insertions(+), 23 deletions(-) diff --git a/src/org/mxchange/jcontactsbusiness/model/opening_time/BusinessOpeningTime.java b/src/org/mxchange/jcontactsbusiness/model/opening_time/BusinessOpeningTime.java index 611f774..647bb88 100644 --- a/src/org/mxchange/jcontactsbusiness/model/opening_time/BusinessOpeningTime.java +++ b/src/org/mxchange/jcontactsbusiness/model/opening_time/BusinessOpeningTime.java @@ -56,14 +56,6 @@ public class BusinessOpeningTime implements OpeningTime { @Transient private static final long serialVersionUID = 19_578_871_756_871L; - /** - * When this opening time was created - */ - @Basic (optional = false) - @Column (name = "opening_times_created", nullable = false, updatable = false) - @Temporal (TemporalType.TIMESTAMP) - private Date openingCreated; - /** * Ending day of opening hours (if applyable) */ @@ -96,6 +88,21 @@ public class BusinessOpeningTime implements OpeningTime { @Temporal (TemporalType.TIME) private Date openingStartTime; + /** + * When this opening time was created + */ + @Basic (optional = false) + @Column (name = "opening_times_entry_created", nullable = false, updatable = false) + @Temporal (TemporalType.TIMESTAMP) + private Date openingTimeEntryCreated; + + /** + * When this opening time was created + */ + @Column (name = "opening_times_entry_updated", insertable = false) + @Temporal (TemporalType.TIMESTAMP) + private Date openingTimeEntryUpdated; + /** * Id number */ @@ -198,18 +205,6 @@ public class BusinessOpeningTime implements OpeningTime { return true; } - @Override - @SuppressWarnings ("ReturnOfDateField") - public Date getOpeningCreated () { - return this.openingCreated; - } - - @Override - @SuppressWarnings ("AssignmentToDateFieldFromParameter") - public void setOpeningCreated (final Date openingCreated) { - this.openingCreated = openingCreated; - } - @Override public DayOfTheWeek getOpeningEndDay () { return this.openingEndDay; @@ -254,6 +249,30 @@ public class BusinessOpeningTime implements OpeningTime { this.openingStartTime = openingStartTime; } + @Override + @SuppressWarnings ("ReturnOfDateField") + public Date getOpeningTimeEntryCreated () { + return this.openingTimeEntryCreated; + } + + @Override + @SuppressWarnings ("AssignmentToDateFieldFromParameter") + public void setOpeningTimeEntryCreated (final Date openingTimeEntryCreated) { + this.openingTimeEntryCreated = openingTimeEntryCreated; + } + + @Override + @SuppressWarnings ("ReturnOfDateField") + public Date getOpeningTimeEntryUpdated () { + return this.openingTimeEntryUpdated; + } + + @Override + @SuppressWarnings ("AssignmentToDateFieldFromParameter") + public void setOpeningTimeEntryUpdated (final Date openingTimeEntryUpdated) { + this.openingTimeEntryUpdated = openingTimeEntryUpdated; + } + @Override public Long getOpeningTimeId () { return this.openingTimeId; diff --git a/src/org/mxchange/jcontactsbusiness/model/opening_time/OpeningTime.java b/src/org/mxchange/jcontactsbusiness/model/opening_time/OpeningTime.java index e8b2ea9..3b8e455 100644 --- a/src/org/mxchange/jcontactsbusiness/model/opening_time/OpeningTime.java +++ b/src/org/mxchange/jcontactsbusiness/model/opening_time/OpeningTime.java @@ -32,14 +32,28 @@ public interface OpeningTime extends Comparable, Serializable { *

* @return Opening time created timestamp */ - Date getOpeningCreated (); + Date getOpeningTimeEntryCreated (); /** * Setter for opening time created timestamp *

- * @param openingCreated Opening time created timestamp + * @param openingTimeEntryCreated Opening time created timestamp */ - void setOpeningCreated (final Date openingCreated); + void setOpeningTimeEntryCreated (final Date openingTimeEntryCreated); + + /** + * Getter for opening time updated timestamp + *

+ * @return Opening time updated timestamp + */ + Date getOpeningTimeEntryUpdated (); + + /** + * Setter for opening time updated timestamp + *

+ * @param openingTimeEntryUpdated Opening time updated timestamp + */ + void setOpeningTimeEntryUpdated (final Date openingTimeEntryUpdated); /** * Getter for id number -- 2.39.5