spring-boot - 是否可以使用 jpa 在 apache ignite 中实现读取和写入?
问题描述
我想用 Apache ignite 从底层数据库读取和写入数据。我正在做一个 Spring Boot 应用程序,所以我只想知道我是否可以使用 JPA 功能?
解决方案
据我了解,Apache Ignite 没有实现任何 JPA API。因此,您无法以 JPA 方式访问存储在 Ignite 中的数据。
但是,您可以使用 JPA 在 Ignite 中缓存数据,同时将数据写入和读取底层 JPA 存储。在这种情况下,您将需要实现自己的CacheStore
. 示例:https ://github.com/gridgain/gridgain-advanced-examples/tree/master/src/main/java/org/gridgain/examples/datagrid/store (这是基于Mongo但你可以重写它来使用JPA)。
推荐阅读
- azure - 将具有专用终结点的 Azure 数据工厂连接到具有同一 VNet 中另一个专用终结点的存储帐户
- flutter - 在不重新启动应用程序的情况下使用颤振更新 GoogleMap 中的标记
- mysql - 使用 vb.net 将记录从 mysql 中的一个表复制到另一个表
- python - 熊猫从数据框中的行中找到与列表匹配的所有单词
- javascript - 如何在 nodeJs 中填充 JSON 之前完成循环以将数据插入数组
- flutter - Flutter audio_service 实现无队列的skipToNext
- javascript - 如何在 Nuxt 中的页面元头属性之前等待发布数据?
- angular - 等待 Api 调用在 Angular 8 中完成错误显示未定义
- javascript - 为什么 addEventListener 不适用于在 vm nodejs 上运行的脚本?
- javascript - 不同范围的百分比值