From 372d8438a9727498b709e318404fc1e6d1faa343 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 25 Sep 2015 10:41:48 +0200 Subject: [PATCH] =?utf8?q?renamed=20even=20more=20fields/attributes=20Sign?= =?utf8?q?ed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../model/basket/AddableBasketItem.java | 8 ++-- .../model/basket/items/BaseItem.java | 10 ++--- .../model/basket/items/BasketItem.java | 38 +++++++++---------- .../model/order/items/OrderItem.java | 8 ++-- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/org/mxchange/jshopcore/model/basket/AddableBasketItem.java b/src/org/mxchange/jshopcore/model/basket/AddableBasketItem.java index 4257d17..023729d 100644 --- a/src/org/mxchange/jshopcore/model/basket/AddableBasketItem.java +++ b/src/org/mxchange/jshopcore/model/basket/AddableBasketItem.java @@ -39,14 +39,14 @@ public interface AddableBasketItem extends Serializable { * * @return the amount */ - public Long getAmount (); + public Long getOrderedAmount (); /** * Setter for item amount * * @param amount the amount to set */ - public void setAmount (final Long amount); + public void setOrderedAmount (final Long amount); /** * Getter for entry id (from database backend) @@ -81,14 +81,14 @@ public interface AddableBasketItem extends Serializable { * * @return the product */ - public Product getProduct (); + public Product getItemProduct (); /** * Setter fo product instance * * @param product the product to set */ - public void setProduct (final Product product); + public void setItemProduct (final Product product); /** * Hash-code calculattion diff --git a/src/org/mxchange/jshopcore/model/basket/items/BaseItem.java b/src/org/mxchange/jshopcore/model/basket/items/BaseItem.java index e2ac620..6c2309f 100644 --- a/src/org/mxchange/jshopcore/model/basket/items/BaseItem.java +++ b/src/org/mxchange/jshopcore/model/basket/items/BaseItem.java @@ -41,10 +41,10 @@ public abstract class BaseItem implements AddableBasketItem, Comparable item.getProduct().getProductId()) { + } else if (this.getItemProduct().getProductId() > item.getItemProduct().getProductId()) { // This id is larger than compared to return -1; } @@ -68,14 +68,14 @@ public abstract class BaseItem implements AddableBasketItem, Comparable