tuweni / org.apache.tuweni.kv / EntityManagerKeyValueStore / <init>

<init>

EntityManagerKeyValueStore(entityManagerProvider: () -> EntityManager, entityClass: Class<V>, idAccessor: (V) -> K, coroutineContext: CoroutineContext = Dispatchers.IO)

JPA-backed key value store.

Parameters

entityClass - the class of entity to store

entityManagerProvider - the provider of entity managers to interact with JPA

idAccessor - the ID accessor

coroutineContext - the kotlin coroutine context.