Joshua Chung 6 gadus atpakaļ
vecāks
revīzija
6913f46982
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 10
    0
      src/main/java/org/zipcoder/store/Cart.java

+ 10
- 0
src/main/java/org/zipcoder/store/Cart.java Parādīt failu

@@ -12,4 +12,14 @@ public class Cart {
12 12
     public long getId(){
13 13
         return this.id;
14 14
     }
15
+
16
+    @Override
17
+    public int hashCode() {
18
+        return super.hashCode();
19
+    }
20
+
21
+    @Override
22
+    public boolean equals(Object obj) {
23
+        return super.equals(obj);
24
+    }
15 25
 }