]> git.mxchange.org Git - jshop-core.git/blobdiff - src/org/mxchange/jshopcore/model/product/BaseProduct.java
More cleanup
[jshop-core.git] / src / org / mxchange / jshopcore / model / product / BaseProduct.java
index e1cc40237e385432a2459f2370e844f7a47c9a6a..b1704d63b561fe17e7aa4f615102c7f24a727550 100644 (file)
@@ -7,13 +7,19 @@ package org.mxchange.jshopcore.model.product;
 
 import java.text.MessageFormat;
 import java.util.Objects;
-import org.mxchange.jcore.BaseFrameworkSystem;
+import org.mxchange.jcoree.BaseEeSystem;
 
 /**
+ * A general product class
  *
  * @author Roland Haeder
  */
-public abstract class BaseProduct extends BaseFrameworkSystem implements Product {
+public abstract class BaseProduct extends BaseEeSystem implements Product, Comparable<Product> {
+       /**
+        * Serial number
+        */
+       private static final long serialVersionUID = 48_379_575_267_451L;
+
        /**
         * Availability of product
         */
@@ -42,7 +48,7 @@ public abstract class BaseProduct extends BaseFrameworkSystem implements Product
        @Override
        public int compareTo (final Product product) {
                // Trace message
-               this.getLogger().trace(MessageFormat.format("product={0} - CALLED!", product)); //NOI18N
+               this.getLogger().logTrace(MessageFormat.format("product={0} - CALLED!", product)); //NOI18N
                
                // category should not be null
                if (null == product) {
@@ -50,7 +56,7 @@ public abstract class BaseProduct extends BaseFrameworkSystem implements Product
                }
                
                // Debug message
-               this.getLogger().debug(MessageFormat.format("this.id={0},product.id={1}", this.getItemId(), product.getItemId())); //NOI18N
+               this.getLogger().logDebug(MessageFormat.format("this.id={0},product.id={1}", this.getItemId(), product.getItemId())); //NOI18N
                
                // Is the id the same?
                if (Objects.equals(this.getItemId(), product.getItemId())) {