!per #15436 make persistenceId abstract in NEW classes

(cherry picked from commit de3249f7f4b859c3caa232e579d9a3bae7406803)

Conflicts:
	akka-samples/akka-sample-persistence-scala/src/main/scala/sample/persistence/PersistentActorExample.scala
This commit is contained in:
Konrad 'ktoso' Malawski 2014-06-26 13:56:01 +02:00 committed by Patrik Nordwall
parent 43952af7ea
commit b1d1d87111
24 changed files with 182 additions and 193 deletions

View file

@ -10,6 +10,8 @@ object SnapshotExample extends App {
}
class ExamplePersistentActor extends PersistentActor {
def persistenceId: String = "sample-id-3"
var state = ExampleState()
def receiveCommand: Actor.Receive = {
@ -28,6 +30,7 @@ object SnapshotExample extends App {
case evt: String =>
state = state.updated(evt)
}
}
val system = ActorSystem("example")