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:
commit
f5f37fbc39
2 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
--------
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
--------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue