diff --git a/pom.xml b/pom.xml
index e61f506..9e36256 100644
--- a/pom.xml
+++ b/pom.xml
@@ -163,13 +163,13 @@
org.datanucleus
datanucleus-guava
- 5.0.1
+ 5.2.1
org.datanucleus
datanucleus-jodatime
- 5.0.0-release
+ 5.2.1
@@ -465,16 +465,17 @@
org.datanucleus
datanucleus-maven-plugin
- 5.0.0-release
+ 5.2.1
JPA
crud
mongo
+ ${basedir}/log4j.properties
true
- compile
+ process-classes
enhance
diff --git a/src/main/java/com/example/crud/entities/Inventory.java b/src/main/java/com/example/crud/entities/Inventory.java
index 07f04d4..a8e6de7 100644
--- a/src/main/java/com/example/crud/entities/Inventory.java
+++ b/src/main/java/com/example/crud/entities/Inventory.java
@@ -19,7 +19,7 @@ import java.util.Set;
@NamedEntityGraph(name = "allProps",
attributeNodes = { @NamedAttributeNode("name"), @NamedAttributeNode("products") })
@ToString
-@EqualsAndHashCode
+@EqualsAndHashCode(callSuper=false)
@Getter @Setter
@IdClass(Inventory.ID.class)
public class Inventory extends AbstractAuditableEntity {
diff --git a/src/main/java/com/example/crud/entities/Product.java b/src/main/java/com/example/crud/entities/Product.java
index 1de6713..983bc20 100644
--- a/src/main/java/com/example/crud/entities/Product.java
+++ b/src/main/java/com/example/crud/entities/Product.java
@@ -2,6 +2,7 @@ package com.example.crud.entities;
import lombok.Data;
import lombok.ToString;
+import lombok.EqualsAndHashCode;
import javax.persistence.*;
@@ -11,6 +12,7 @@ import javax.persistence.*;
**/
@Data @Entity
@ToString
+@EqualsAndHashCode(callSuper=false)
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class Product extends AbstractAuditableEntity {