From 218a2592b4d4c26585659d163a75d1827a00baea Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Wed, 25 Aug 2021 17:11:21 +0200 Subject: [PATCH] Hacking. --- .../main/java/org/jmolecules/ddd/types/AggregateRoot.java | 2 +- .../src/main/java/org/jmolecules/ddd/types/Association.java | 6 +++--- .../src/main/java/org/jmolecules/ddd/types/Entity.java | 3 ++- .../main/java/org/jmolecules/ddd/types/Identifiable.java | 2 +- .../src/main/java/org/jmolecules/ddd/types/Identifier.java | 2 +- .../src/main/java/org/jmolecules/ddd/types/Repository.java | 2 +- .../java/org/jmolecules/ddd/types/SimpleAssociation.java | 2 +- .../java/org/jmolecules/ddd/types/AssociationUnitTests.java | 2 +- 8 files changed, 11 insertions(+), 10 deletions(-) diff --git a/jmolecules-ddd/src/main/java/org/jmolecules/ddd/types/AggregateRoot.java b/jmolecules-ddd/src/main/java/org/jmolecules/ddd/types/AggregateRoot.java index 5bf356c..fab461a 100644 --- a/jmolecules-ddd/src/main/java/org/jmolecules/ddd/types/AggregateRoot.java +++ b/jmolecules-ddd/src/main/java/org/jmolecules/ddd/types/AggregateRoot.java @@ -35,6 +35,6 @@ * @see John Sullivan - Advancing Enterprise DDD - Reinstating * the Aggregate */ -public interface Association, ID extends Identifier> extends Identifiable { +public interface Association, ID extends Identifier> extends Identifiable { /** * Creates an {@link Association} pointing to the {@link Identifier} of the given {@link AggregateRoot}. @@ -39,7 +39,7 @@ public interface Association, ID extends Identifi * {@literal null}. * @since 1.2 */ - static , ID extends Identifier> Association forAggregate(T aggregate) { + static , ID extends Identifier> Association forAggregate(T aggregate) { if (aggregate == null) { throw new IllegalArgumentException("Aggregate must not be null!"); @@ -57,7 +57,7 @@ static , ID extends Identifier> Association, ID extends Identifier> Association forId(ID identifier) { + static , ID extends Identifier> Association forId(ID identifier) { if (identifier == null) { throw new IllegalArgumentException("Identifier must not be null!"); diff --git a/jmolecules-ddd/src/main/java/org/jmolecules/ddd/types/Entity.java b/jmolecules-ddd/src/main/java/org/jmolecules/ddd/types/Entity.java index 63ec325..f264c8d 100644 --- a/jmolecules-ddd/src/main/java/org/jmolecules/ddd/types/Entity.java +++ b/jmolecules-ddd/src/main/java/org/jmolecules/ddd/types/Entity.java @@ -32,4 +32,5 @@ * @see