@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.
entityManagerProvider
- The supplier of entity manager to operate.
entityClass
- The class of objects to store in the store
IOException
- If an I/O error occurs.
Return
A key-value store.