[JAVA-27822] Upgrade ddd to Spring Boot 3 (#15399)

This commit is contained in:
panos-kakos 2023-12-13 12:41:51 +02:00 committed by GitHub
parent 8daf19c9ec
commit 9f7ec43036
6 changed files with 16 additions and 31 deletions

View File

@ -10,29 +10,11 @@
<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-boot-2</artifactId>
<artifactId>parent-boot-3</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../../parent-boot-2</relativePath>
<relativePath>../../parent-boot-3</relativePath>
</parent>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit-jupiter.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
@ -88,12 +70,15 @@
<dependency>
<groupId>de.flapdoodle.embed</groupId>
<artifactId>de.flapdoodle.embed.mongo</artifactId>
<version>${de.flapdoodle.embed.mongo.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<start-class>com.baeldung.ddd.PersistingDddAggregatesApplication</start-class>
<joda-money.version>1.0.1</joda-money.version>
<de.flapdoodle.embed.mongo.version>4.11.1</de.flapdoodle.embed.mongo.version>
</properties>
</project>

View File

@ -4,12 +4,12 @@ import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import jakarta.persistence.ElementCollection;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
@Entity
@Table(name = "order_table")

View File

@ -1,7 +1,7 @@
package com.baeldung.ddd.order.jpa;
import javax.persistence.Embeddable;
import javax.persistence.Embedded;
import jakarta.persistence.Embeddable;
import jakarta.persistence.Embedded;
@Embeddable
class JpaOrderLine {

View File

@ -2,7 +2,7 @@ package com.baeldung.ddd.order.jpa;
import java.math.BigDecimal;
import javax.persistence.Embeddable;
import jakarta.persistence.Embeddable;
@Embeddable
class JpaProduct {

View File

@ -4,7 +4,7 @@ import com.baeldung.dddhexagonalspring.domain.Product;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.constraints.NotNull;
import jakarta.validation.constraints.NotNull;
public class AddProductRequest {
@NotNull private Product product;

View File

@ -4,7 +4,7 @@ import com.baeldung.dddhexagonalspring.domain.Product;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.constraints.NotNull;
import jakarta.validation.constraints.NotNull;
public class CreateOrderRequest {
@NotNull private Product product;