我想使用Apache ignite从基础数据库读取和写入数据。我正在做一个Spring Boot应用程序,所以我只想知道我是否可以使用JPA功能?
答案 0 :(得分:0)
据我了解,Apache Ignite并未实现任何JPA API。因此,您无法以JPA方式访问存储在Ignite中的数据。
但是,在将数据写入底层JPA存储以及从中读取时,您可能可以使用JPA在Ignite中缓存数据。在这种情况下,您将需要实现自己的CacheStore
。示例:https://github.com/gridgain/gridgain-advanced-examples/tree/master/src/main/java/org/gridgain/examples/datagrid/store(基于Mongo,但您可以重写它以使用JPA)。