From: Roland Haeder Date: Fri, 25 Sep 2015 08:41:48 +0000 (+0200) Subject: renamed even more fields/attributes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=372d8438a9727498b709e318404fc1e6d1faa343;p=jcustomer-core.git renamed even more fields/attributes Signed-off-by:Roland Häder --- 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