Skip to content

Commit 60345f9

Browse files
add serializers for ids
1 parent 6d31771 commit 60345f9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • src/main/java/com/dddheroes/heroesofddd/creaturerecruitment/write

src/main/java/com/dddheroes/heroesofddd/creaturerecruitment/write/Dwelling.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class Dwelling {
3030
private static final Logger logger = LoggerFactory.getLogger(Dwelling.class);
3131

3232
@AggregateIdentifier
33-
public DwellingId dwellingId;
33+
public DwellingId dwellingId; // needs to be public for snapshotting
3434
public CreatureId creatureId;
3535
public Resources costPerTroop;
3636
public Amount availableCreatures;
@@ -114,7 +114,9 @@ void evolve(CreatureRecruited event) {
114114
}
115115

116116
Dwelling() {
117-
logger.info("🏠 Creating empty Dwelling (required by Axon)");
117+
logger.info("\uD83D\uDC80 Dwelling non-args constructor");
118118
// required by Axon
119119
}
120+
121+
120122
}

0 commit comments

Comments
 (0)