X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Forg%2Fmxchange%2Fjshopcore%2Fmodel%2Fproduct%2FBaseProduct.java;h=b1704d63b561fe17e7aa4f615102c7f24a727550;hb=82754b37a3ea3ec3b71b67cad59b5c37d09fab77;hp=e1cc40237e385432a2459f2370e844f7a47c9a6a;hpb=6b9f17d0a9ac8377e24651fb9f48e2d3ce7de94e;p=jshop-core.git diff --git a/src/org/mxchange/jshopcore/model/product/BaseProduct.java b/src/org/mxchange/jshopcore/model/product/BaseProduct.java index e1cc402..b1704d6 100644 --- a/src/org/mxchange/jshopcore/model/product/BaseProduct.java +++ b/src/org/mxchange/jshopcore/model/product/BaseProduct.java @@ -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 { + /** + * 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())) {