]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 16 Apr 2020 15:52:48 +0000 (17:52 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 16 Apr 2020 15:52:48 +0000 (17:52 +0200)
- renamed openingCreated to openingTimeEntryCreated
- added optional openingTimeEntryUpdated

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/model/opening_time/BusinessOpeningTime.java
src/org/mxchange/jcontactsbusiness/model/opening_time/OpeningTime.java

index 611f77474da7aac54d9469b76ebaa6afc8a38c0e..647bb882b4f009c609a22493d5a7f45bf3f221d1 100644 (file)
@@ -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;
index e8b2ea91703303521693ffc49211cd1e7d7c9ae1..3b8e4554894f4ce00940f6017f340d95af7f3e81 100644 (file)
@@ -32,14 +32,28 @@ public interface OpeningTime extends Comparable<OpeningTime>, Serializable {
         * <p>
         * @return Opening time created timestamp
         */
-       Date getOpeningCreated ();
+       Date getOpeningTimeEntryCreated ();
 
        /**
         * Setter for opening time created timestamp
         * <p>
-        * @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
+        * <p>
+        * @return Opening time updated timestamp
+        */
+       Date getOpeningTimeEntryUpdated ();
+
+       /**
+        * Setter for opening time updated timestamp
+        * <p>
+        * @param openingTimeEntryUpdated Opening time updated timestamp
+        */
+       void setOpeningTimeEntryUpdated (final Date openingTimeEntryUpdated);
 
        /**
         * Getter for id number