Comment on persistenceId uniqueness (#21060)

This commit is contained in:
Richard S. Imaoka 2016-09-06 14:20:48 +09:00
parent b9a05aff96
commit e35c8b0d31
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
--------