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
*/
@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) {
}
// 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())) {