Remove EventSourcedEntity, #27724
Move utils to construct PersistenceId * Move from EntityTypeKey to PersistenceId * Thereby no persistence dependencies in sharding * Reference documentation PersistenceId and how to use with Sharding * Add EntityTypeKey to EntityContext to make it "complete" * One consequence of adding EntityTypeKey to EntityContext is that now requires additional message type parameter and then type inference for `init` (Entity) breaks down. Solved by using two parameter lists in Entity.apply, which is pretty nice anyway since the second parameter is a function. * as bonus the dependency can be removed
This commit is contained in:
parent
e74831d78b
commit
1b3a75b3f8
36 changed files with 479 additions and 513 deletions
|
|
@ -427,7 +427,6 @@ lazy val clusterTyped = akkaModule("akka-cluster-typed")
|
|||
lazy val clusterShardingTyped = akkaModule("akka-cluster-sharding-typed")
|
||||
.dependsOn(
|
||||
clusterTyped % "compile->compile;test->test;multi-jvm->multi-jvm",
|
||||
persistenceTyped,
|
||||
clusterSharding,
|
||||
actorTestkitTyped % "test->test",
|
||||
actorTypedTests % "test->test",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue