tuweni / org.apache.tuweni.kv / EntityManagerKeyValueStore / open

open

@JvmStatic fun <K, V> open(entityManagerProvider: Supplier<EntityManager>, entityClass: Class<V>, idAccessor: Function<V, K>): EntityManagerKeyValueStore<K, V> (source)

Open a relational database backed key-value store using a JPA entity manager.

Parameters

entityManagerProvider - The supplier of entity manager to operate.

entityClass - The class of objects to store in the store

Exceptions

IOException - If an I/O error occurs.

Return
A key-value store.