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:
Oliver Drotbohm
2021-09-01 23:14:44 +02:00
parent d60b4efe92
commit 017a810eed
7 changed files with 13 additions and 24 deletions

View File

@@ -13,9 +13,8 @@
<artifactId>spring-data-mongodb-jmolecules</artifactId>
<properties>
<spring-data-bom.version>2021.0.0-SNAPSHOT</spring-data-bom.version>
<jmolecules.version>1.2.0</jmolecules.version>
<jmolecules-integration.version>0.4.0</jmolecules-integration.version>
<jmolecules.version>1.3.0</jmolecules.version>
<jmolecules-integration.version>0.5.0</jmolecules-integration.version>
</properties>
<dependencies>

View File

@@ -15,8 +15,6 @@
*/
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) {
}
public record Address(String street, String city, String zipCode) implements ValueObject {}

View File

@@ -15,8 +15,6 @@
*/
package example.springdata.mongodb.order;
import org.jmolecules.ddd.annotation.ValueObject;
import org.jmolecules.ddd.types.ValueObject;
@ValueObject
public record LineItem(String description) {
}
public record LineItem(String description) implements ValueObject {}