All OTP Transit entities should extend this class. The purpose of the class is to enforce a common implementation of the identity:
id
- All entities should have an id. The id should be unique within the
context the entity live. For aggregates which live in a global space the id must be unique.
This apply to all entities listed in the index service.
hashCode()/equals()
method is consistent and based on the id (identity). We
frequently use this to index and lookup entities.
name | data type | description |
---|---|---|
id | FeedScopedId |
Example
{ "id" : { "feedId" : "...", "id" : "..." } }