Fixed build, but have not tested as yet.
This commit is contained in:
parent
b6c563ca25
commit
384a43d4d4
3 changed files with 8 additions and 5 deletions
9
pom.xml
9
pom.xml
|
@ -163,13 +163,13 @@
|
|||
<dependency>
|
||||
<groupId>org.datanucleus</groupId>
|
||||
<artifactId>datanucleus-guava</artifactId>
|
||||
<version>5.0.1</version>
|
||||
<version>5.2.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.datanucleus</groupId>
|
||||
<artifactId>datanucleus-jodatime</artifactId>
|
||||
<version>5.0.0-release</version>
|
||||
<version>5.2.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
@ -465,16 +465,17 @@
|
|||
<plugin>
|
||||
<groupId>org.datanucleus</groupId>
|
||||
<artifactId>datanucleus-maven-plugin</artifactId>
|
||||
<version>5.0.0-release</version>
|
||||
<version>5.2.1</version>
|
||||
<configuration>
|
||||
<api>JPA</api>
|
||||
<persistenceUnitName>crud</persistenceUnitName>
|
||||
<persistenceUnitName>mongo</persistenceUnitName>
|
||||
<log4jConfiguration>${basedir}/log4j.properties</log4jConfiguration>
|
||||
<verbose>true</verbose>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>compile</phase>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>enhance</goal>
|
||||
</goals>
|
||||
|
|
|
@ -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<String> {
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in a new issue