Upgrade to jMolecules 1.3 and jMolecules Integrations 0.5.
Also switch to the ValueObject interface instead of the annotation for consistency.
This commit is contained in:
@@ -13,9 +13,8 @@
|
|||||||
<artifactId>spring-data-jdbc-jmolecules</artifactId>
|
<artifactId>spring-data-jdbc-jmolecules</artifactId>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<spring-data-bom.version>2021.0.0-SNAPSHOT</spring-data-bom.version>
|
<jmolecules.version>1.3.0</jmolecules.version>
|
||||||
<jmolecules.version>1.2.0</jmolecules.version>
|
<jmolecules-integration.version>0.5.0</jmolecules-integration.version>
|
||||||
<jmolecules-integration.version>0.4.0</jmolecules-integration.version>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2021-2021 the original author or authors.
|
* Copyright 2020-2021 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -15,8 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
package example.springdata.jdbc.jmolecules.customer;
|
package example.springdata.jdbc.jmolecules.customer;
|
||||||
|
|
||||||
import org.jmolecules.ddd.annotation.ValueObject;
|
import org.jmolecules.ddd.types.ValueObject;
|
||||||
|
|
||||||
@ValueObject
|
public record Address(String street, String city, String zipCode) implements ValueObject {}
|
||||||
public record Address(String street, String city, String zipCode) {
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
package example.springdata.jdbc.jmolecules.order;
|
package example.springdata.jdbc.jmolecules.order;
|
||||||
|
|
||||||
import org.jmolecules.ddd.annotation.ValueObject;
|
import org.jmolecules.ddd.types.ValueObject;
|
||||||
|
|
||||||
@ValueObject
|
public record LineItem(String description) implements ValueObject {}
|
||||||
public record LineItem(String description) {
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ import example.springdata.jdbc.jmolecules.customer.Customer;
|
|||||||
import example.springdata.jdbc.jmolecules.customer.Customers;
|
import example.springdata.jdbc.jmolecules.customer.Customers;
|
||||||
import example.springdata.jdbc.jmolecules.order.Order;
|
import example.springdata.jdbc.jmolecules.order.Order;
|
||||||
import example.springdata.jdbc.jmolecules.order.Orders;
|
import example.springdata.jdbc.jmolecules.order.Orders;
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
|||||||
@@ -13,9 +13,8 @@
|
|||||||
<artifactId>spring-data-mongodb-jmolecules</artifactId>
|
<artifactId>spring-data-mongodb-jmolecules</artifactId>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<spring-data-bom.version>2021.0.0-SNAPSHOT</spring-data-bom.version>
|
<jmolecules.version>1.3.0</jmolecules.version>
|
||||||
<jmolecules.version>1.2.0</jmolecules.version>
|
<jmolecules-integration.version>0.5.0</jmolecules-integration.version>
|
||||||
<jmolecules-integration.version>0.4.0</jmolecules-integration.version>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
package example.springdata.mongodb.customer;
|
package example.springdata.mongodb.customer;
|
||||||
|
|
||||||
import org.jmolecules.ddd.annotation.ValueObject;
|
import org.jmolecules.ddd.types.ValueObject;
|
||||||
|
|
||||||
@ValueObject
|
public record Address(String street, String city, String zipCode) implements ValueObject {}
|
||||||
public record Address(String street, String city, String zipCode) {
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
package example.springdata.mongodb.order;
|
package example.springdata.mongodb.order;
|
||||||
|
|
||||||
import org.jmolecules.ddd.annotation.ValueObject;
|
import org.jmolecules.ddd.types.ValueObject;
|
||||||
|
|
||||||
@ValueObject
|
public record LineItem(String description) implements ValueObject {}
|
||||||
public record LineItem(String description) {
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user