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:
@@ -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 {}
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user