]> git.mxchange.org Git - jcustomer-core.git/blobdiff - src/org/mxchange/jshopcore/model/category/ProductCategory.java
Continued:
[jcustomer-core.git] / src / org / mxchange / jshopcore / model / category / ProductCategory.java
index 65a40c8bf26959643e4a0562e56a23e79217e8a7..3b0923e8f50cba5e749e604d3bf2ec70c262975a 100644 (file)
@@ -60,20 +60,20 @@ public class ProductCategory implements Category, Comparable<Category> {
         * Title of category
         */
        @Basic (optional = false)
-       @Column (name = "title", length = 100, nullable = false, unique = true)
-       private String title;
+       @Column (name = "category_title", length = 100, nullable = false, unique = true)
+       private String categoryTitle;
 
        /**
         * Constructor which accepts all database fields
         *
         * @param categoryId Id number of database record
-        * @param title Category title
+        * @param categoryTitle Category categoryTitle
         * @param parentCategory Parent category
         */
-       public ProductCategory (final Long categoryId, final String title, final Category parentCategory) {
+       public ProductCategory (final Long categoryId, final String categoryTitle, final Category parentCategory) {
                // Set all here
                this.categoryId = categoryId;
-               this.title = title;
+               this.categoryTitle = categoryTitle;
                this.parentCategory = parentCategory;
        }
 
@@ -107,7 +107,7 @@ public class ProductCategory implements Category, Comparable<Category> {
        public void copyAll (final Category category) {
                // Copy all data
                this.setParentCategory(category.getParentCategory());
-               this.setTitle(category.getTitle());
+               this.setCategoryTitle(category.getCategoryTitle());
        }
 
        @Override
@@ -131,12 +131,12 @@ public class ProductCategory implements Category, Comparable<Category> {
        }
 
        @Override
-       public String getTitle () {
-               return this.title;
+       public String getCategoryTitle () {
+               return this.categoryTitle;
        }
 
        @Override
-       public void setTitle (final String title) {
-               this.title = title;
+       public void setCategoryTitle (final String categoryTitle) {
+               this.categoryTitle = categoryTitle;
        }
 }