From 651f9766018e3d1a0b967e255ef095185458f79a Mon Sep 17 00:00:00 2001 From: Notmoo Date: Thu, 17 Aug 2017 23:49:05 +0200 Subject: [PATCH] =?UTF-8?q?Module=20Core,=20clss=20Product=20:=20update=20?= =?UTF-8?q?m=C3=A9thode=20equals();=20ajout=20TODO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/pqt/core/entities/product/Product.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Workspace/core/src/main/java/com/pqt/core/entities/product/Product.java b/Workspace/core/src/main/java/com/pqt/core/entities/product/Product.java index ec5d5074..6c40e894 100644 --- a/Workspace/core/src/main/java/com/pqt/core/entities/product/Product.java +++ b/Workspace/core/src/main/java/com/pqt/core/entities/product/Product.java @@ -6,7 +6,7 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Objects; - +//TODO faire en sorte que les composés reprennent les qté dispo des composants /** * Created by Notmoo on 18/07/2017. */ @@ -123,6 +123,7 @@ public class Product implements ILoggable, Serializable{ return this.id == other.id && Objects.equals(this.name, other.name) && Objects.equals(this.components, other.components) - && Objects.equals(this.category, other.category); + && Objects.equals(this.category, other.category) + && Objects.equals(this.price, other.price); } }