- Home
- JSON
- FareZone
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.
-
The hashCode()/equals() method is consistent and based on the id (identity). We
frequently use this to index and lookup entities.
- Implemented Interfaces
- Serializable
Properties
name |
data type |
description |
name
|
string
|
|
|
id |
FeedScopedId
|
|
Example
{
"name" : "...",
"id" : {
"feedId" : "...",
"id" : "..."
}
}