Skip to content

v1.19.2

Choose a tag to compare

@gmpassos gmpassos released this 13 Oct 00:31
· 252 commits to master since this release
686c855
  • EntityRepositoryProvider / DBAdapter: one generic lookup,
    EntityRepositoryProvider.lookupEntityRepository (replacing
    traverseLookup): the own repositories, then the parent provider, the
    known providers (several candidates resolved) and the global provider.
    getEntityRepository / getEntityRepositoryByType only say how to search
    locally and how to ask another provider.
    • No static state: the providers already asked are passed down the lookup
      (traversed, a new optional named parameter, internal), so a lookup
      started inside another one (e.g. by a provider's initialization) is
      independent of it.
    • A hit in the provider's own repositories allocates nothing.
  • Tests: the providers asked per lookup counted (not timed), a hit not going
    past the own repositories, a nested lookup, a self lookup while
    initializing.