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>
|
<dependency>
|
||||||
<groupId>org.datanucleus</groupId>
|
<groupId>org.datanucleus</groupId>
|
||||||
<artifactId>datanucleus-guava</artifactId>
|
<artifactId>datanucleus-guava</artifactId>
|
||||||
<version>5.0.1</version>
|
<version>5.2.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.datanucleus</groupId>
|
<groupId>org.datanucleus</groupId>
|
||||||
<artifactId>datanucleus-jodatime</artifactId>
|
<artifactId>datanucleus-jodatime</artifactId>
|
||||||
<version>5.0.0-release</version>
|
<version>5.2.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -465,16 +465,17 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.datanucleus</groupId>
|
<groupId>org.datanucleus</groupId>
|
||||||
<artifactId>datanucleus-maven-plugin</artifactId>
|
<artifactId>datanucleus-maven-plugin</artifactId>
|
||||||
<version>5.0.0-release</version>
|
<version>5.2.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<api>JPA</api>
|
<api>JPA</api>
|
||||||
<persistenceUnitName>crud</persistenceUnitName>
|
<persistenceUnitName>crud</persistenceUnitName>
|
||||||
<persistenceUnitName>mongo</persistenceUnitName>
|
<persistenceUnitName>mongo</persistenceUnitName>
|
||||||
|
<log4jConfiguration>${basedir}/log4j.properties</log4jConfiguration>
|
||||||
<verbose>true</verbose>
|
<verbose>true</verbose>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<phase>compile</phase>
|
<phase>process-classes</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>enhance</goal>
|
<goal>enhance</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
|
|
@ -19,7 +19,7 @@ import java.util.Set;
|
||||||
@NamedEntityGraph(name = "allProps",
|
@NamedEntityGraph(name = "allProps",
|
||||||
attributeNodes = { @NamedAttributeNode("name"), @NamedAttributeNode("products") })
|
attributeNodes = { @NamedAttributeNode("name"), @NamedAttributeNode("products") })
|
||||||
@ToString
|
@ToString
|
||||||
@EqualsAndHashCode
|
@EqualsAndHashCode(callSuper=false)
|
||||||
@Getter @Setter
|
@Getter @Setter
|
||||||
@IdClass(Inventory.ID.class)
|
@IdClass(Inventory.ID.class)
|
||||||
public class Inventory extends AbstractAuditableEntity<String> {
|
public class Inventory extends AbstractAuditableEntity<String> {
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.example.crud.entities;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import javax.persistence.*;
|
import javax.persistence.*;
|
||||||
|
|
||||||
|
@ -11,6 +12,7 @@ import javax.persistence.*;
|
||||||
**/
|
**/
|
||||||
@Data @Entity
|
@Data @Entity
|
||||||
@ToString
|
@ToString
|
||||||
|
@EqualsAndHashCode(callSuper=false)
|
||||||
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
|
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
|
||||||
public class Product extends AbstractAuditableEntity {
|
public class Product extends AbstractAuditableEntity {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue