]> git.mxchange.org Git - jproduct-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 25 Apr 2020 16:09:34 +0000 (18:09 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 25 Apr 2020 16:09:34 +0000 (18:09 +0200)
- renamed categoryCreated to categoryEntryCreated
- renamed categoryUpdated to categoryEntryUpdated

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jproduct/model/category/Category.java
src/org/mxchange/jproduct/model/category/ProductCategory.java

index 86e4ea5fcb202678e711cfdc08d7a262d8f4c4b1..f35878312a7461d59da1f42eed7073a8cb4c4ba9 100644 (file)
@@ -26,20 +26,6 @@ import java.util.Date;
  */
 public interface Category extends Comparable<Category>, Serializable {
 
-       /**
-        * Getter for created timestamp
-        * <p>
-        * @return Created timestamp
-        */
-       Date getCategoryCreated ();
-
-       /**
-        * Setter for created timestamp
-        * <p>
-        * @param categoryCreated Created timestamp
-        */
-       void setCategoryCreated (final Date categoryCreated);
-
        /**
         * Id number of category
         * <p>
@@ -97,19 +83,33 @@ public interface Category extends Comparable<Category>, Serializable {
         */
        void setCategoryI18nKey (final String title);
 
+       /**
+        * Getter for created timestamp
+        * <p>
+        * @return Created timestamp
+        */
+       Date getCategoryEntryCreated ();
+
+       /**
+        * Setter for created timestamp
+        * <p>
+        * @param categoryEntryCreated Created timestamp
+        */
+       void setCategoryEntryCreated (final Date categoryEntryCreated);
+
        /**
         * Getter for updated timestamp
         * <p>
         * @return Updated timestamp
         */
-       Date getCategoryUpdated ();
+       Date getCategoryEntryUpdated ();
 
        /**
         * Setter for updated timestamp
         * <p>
-        * @param categoryUpdated Updated timestamp
+        * @param categoryEntryUpdated Updated timestamp
         */
-       void setCategoryUpdated (final Date categoryUpdated);
+       void setCategoryEntryUpdated (final Date categoryEntryUpdated);
 
        @Override
        boolean equals (final Object object);
index dcc45b7a3892dea71d5118cd7e0991369b774112..e21f3f868f5bb3b4b77aaf4226652556628ff8fc 100644 (file)
@@ -60,9 +60,16 @@ public class ProductCategory implements Category {
         * When this entry has been created
         */
        @Basic (optional = false)
-       @Column (name = "category_created", updatable = false, nullable = false)
+       @Column (name = "category_entry_created", updatable = false, nullable = false)
        @Temporal (TemporalType.TIMESTAMP)
-       private Date categoryCreated;
+       private Date categoryEntryCreated;
+
+       /**
+        * When this entry has been created
+        */
+       @Column (name = "category_entry_updated")
+       @Temporal (TemporalType.TIMESTAMP)
+       private Date categoryEntryUpdated;
 
        /**
         * I18n key of category
@@ -86,13 +93,6 @@ public class ProductCategory implements Category {
        @Column (name = "category_in_statistics", nullable = false)
        private Boolean categoryShownInStatistics;
 
-       /**
-        * When this entry has been created
-        */
-       @Column (name = "category_updated")
-       @Temporal (TemporalType.TIMESTAMP)
-       private Date categoryUpdated;
-
        /**
         * Parent category
         */
@@ -171,14 +171,26 @@ public class ProductCategory implements Category {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Date getCategoryCreated () {
-               return this.categoryCreated;
+       public Date getCategoryEntryCreated () {
+               return this.categoryEntryCreated;
+       }
+
+       @Override
+       @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+       public void setCategoryEntryCreated (final Date categoryEntryCreated) {
+               this.categoryEntryCreated = categoryEntryCreated;
+       }
+
+       @Override
+       @SuppressWarnings ("ReturnOfDateField")
+       public Date getCategoryEntryUpdated () {
+               return this.categoryEntryUpdated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setCategoryCreated (final Date categoryCreated) {
-               this.categoryCreated = categoryCreated;
+       public void setCategoryEntryUpdated (final Date categoryEntryUpdated) {
+               this.categoryEntryUpdated = categoryEntryUpdated;
        }
 
        @Override
@@ -211,18 +223,6 @@ public class ProductCategory implements Category {
                this.categoryShownInStatistics = categoryShownInStatistics;
        }
 
-       @Override
-       @SuppressWarnings ("ReturnOfDateField")
-       public Date getCategoryUpdated () {
-               return this.categoryUpdated;
-       }
-
-       @Override
-       @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setCategoryUpdated (final Date categoryUpdated) {
-               this.categoryUpdated = categoryUpdated;
-       }
-
        @Override
        public Category getParentCategory () {
                return this.parentCategory;