]> git.mxchange.org Git - jphone-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 16 Apr 2020 16:50:33 +0000 (18:50 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 16 Apr 2020 16:50:33 +0000 (18:50 +0200)
- added field providerEntryUpdated

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jphone/model/phonenumbers/mobileprovider/CellphoneProvider.java
src/org/mxchange/jphone/model/phonenumbers/mobileprovider/MobileProvider.java

index 5b2c9760f81381f7f0ab5bbe290a605bba476052..7e474e35a3ddb72e7338373a6ae6306c1d592690 100644 (file)
@@ -80,6 +80,13 @@ public class CellphoneProvider implements MobileProvider {
        @Column (name = "provider_entry_created", nullable = false, updatable = false)
        private Date providerEntryCreated;
 
+       /**
+        * Timestamp when this entry has been created
+        */
+       @Temporal (TemporalType.TIMESTAMP)
+       @Column (name = "provider_entry_updated", insertable = false)
+       private Date providerEntryUpdated;
+
        /**
         * Id number
         */
@@ -237,6 +244,18 @@ public class CellphoneProvider implements MobileProvider {
                this.providerEntryCreated = providerEntryCreated;
        }
 
+       @Override
+       @SuppressWarnings ("ReturnOfDateField")
+       public Date getProviderEntryUpdated () {
+               return this.providerEntryUpdated;
+       }
+
+       @Override
+       @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+       public void setProviderEntryUpdated (final Date providerEntryUpdated) {
+               this.providerEntryUpdated = providerEntryUpdated;
+       }
+
        @Override
        public Long getProviderId () {
                return this.providerId;
index f7c7127371a185b12d79e75da1441e4ccc556f3e..0a0fa61d190afeeb680240e6291b2a0ec66019c3 100644 (file)
@@ -97,6 +97,20 @@ public interface MobileProvider extends Comparable<MobileProvider>, Serializable
         */
        void setProviderEntryCreated (final Date providerEntryCreated);
 
+       /**
+        * Getter for timestamp when this entry has been updated
+        * <p>
+        * @return Timestamp when this entry has been updated
+        */
+       Date getProviderEntryUpdated ();
+
+       /**
+        * Setter for timestamp when this entry has been updated
+        * <p>
+        * @param providerEntryUpdated Timestamp when this entry has been updated
+        */
+       void setProviderEntryUpdated (final Date providerEntryUpdated);
+
        /**
         * Getter for pattern for mail gateway
         * <p>