public interface MemoryRepositoryRegistration:
Type-erased registration boundary for heterogeneous memory repositories.
Concrete repositories retain their generic entity and identity types. This interface only lets one immutable MemoryConfiguration contain several repositories without weakening their public typed API.
registration as MemoryRepositoryRegistration = MemoryRepository<User, Int>(users) assert registration.entityType == type(User)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | entityTypeentityType as Type |
Entity type exposed by the registered repository. |
| public readonly property | identityTypeidentityType as Type |
Exact effective identity type exposed by the registered repository. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | repositoryObjectrepositoryObject() as Object |
Returns the concrete repository while crossing the heterogeneous registry boundary. |