是否可以使用jpa在apache ignite中实现读写?

Is it possible to implement read through and write through in apache ignite using jpa?

我想使用 Apache ignite 从底层数据库读取和写入数据。我正在做一个 spring 引导应用程序,所以我只想知道我是否可以为它使用 JPA 功能?

据我了解,Apache Ignite 没有实现任何 JPA API。因此,您无法以 JPA 方式访问存储在 Ignite 中的数据。

但是,您或许可以使用 JPA 在 Ignite 中缓存数据,同时将数据写入和读取底层 JPA 存储。在这种情况下,您将需要实现自己的 CacheStore. Example: https://github.com/gridgain/gridgain-advanced-examples/tree/master/src/main/java/org/gridgain/examples/datagrid/store(这是基于 Mongo,但您可以重写它以使用 JPA)。