Merge pull request #21379 from richard-imaoka/wip-21060-doc-persistid-unique-richard-imaoka

Add a comment on persistenceId uniqueness
This commit is contained in:
Patrik Nordwall 2016-09-06 12:32:57 +02:00 committed by GitHub
commit f5f37fbc39
2 changed files with 14 additions and 0 deletions

View file

@ -150,6 +150,13 @@ The identifier must be defined with the ``persistenceId`` method.
.. _recovery-java:
.. note::
``persistenceId`` must be unique to a given entity in the journal (database table/keyspace).
When replaying messages persisted to the journal, you query messages with a ``persistenceId``.
So, if two different entities share the same ``persistenceId``, message-replaying
behavior is corrupted.
Recovery
--------

View file

@ -133,6 +133,13 @@ The identifier must be defined with the ``persistenceId`` method.
.. _recovery:
.. note::
``persistenceId`` must be unique to a given entity in the journal (database table/keyspace).
When replaying messages persisted to the journal, you query messages with a ``persistenceId``.
So, if two different entities share the same ``persistenceId``, message-replaying
behavior is corrupted.
Recovery
--------