Spring Data Graph、jo4neo、ogrm 有什么替代品吗?
我正在寻找易于使用的图形 DB + ORM 解决方案。要求是:
- 流畅的 Java 接口,不需要使用任何 XML。
- 图形遍历的简易性:“给我这些类型的所有实体,从这个开始,仅使用这一组关系类型进行遍历”。
- 开箱即用的全文搜索:p.2 +“仅考虑此字段包含此文本的实体”
- 无需在图形级别上操作:Neo4j 很棒,但我想避免使用
setProperty/
getProperty
直接。
我已经检查过这些:
- ogrm - 不再支持。
- jo4neo - 看起来不起作用 p.2 和 p.3
- Spring Data Graph - 似乎是很棒的东西,但它太不成熟 - 花了一周的时间试图让它在 Eclipse 中正常工作 - 没有成功。
我还需要检查其他类似的工具吗?
I'm looking for easy-to-use graph DB + ORM solution. The requirements are:
- Fluent Java interfaces, no need to use any XMLs.
- Ease of graph traversal: "give me all entities of these types, starting from this one, traverse only using this set of relation types".
- Full text search out of the box: p.2 + "only consider entities where this field contains this text"
- No need to operate on graph level: Neo4j is great, but I'd like to avoid working with
setProperty
/getProperty
directly.
I've already checked these:
- ogrm - not supported anymore.
- jo4neo - looks like doesn't work p.2 and p.3
- Spring Data Graph - seems to be great things, but it's too immature - spent a week trying to make it work fine in Eclipse - no success.
Are there any other similar tools I need to check?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Spring Data Graph 是开发最活跃的,最近发布了 1.1.0 版本,并且在 10 月份的 SpringOne 之前计划了许多工作。
然而,由于 AspectJ 增强了 POJO,它确实给 IDE 带来了挑战。查看文档了解一些信息帮助实现这一目标。
干杯,
安德烈亚斯
Spring Data Graph is the most actively developed, with a recently released version 1.1.0 and lots of work planned before SpringOne in October.
However, it does create a challenge for IDEs because of the AspectJ enhanced POJOs. Have a look at the documentation for some help getting that going.
Cheers,
Andreas
从 2015 年 1 月开始,Hibernate 开始支持 neo4j:
http://hibernate.org/ogm/
显然,您无法使用 hql 查询,但支持使用 Cypher 查询。
As of January 2015, Hibernate has started supporting neo4j:
http://hibernate.org/ogm/
Obviously, you can't query using hql, but they support using Cypher queries.
还有一个非常新的 spring-data-gremlin ,它可以完成你想要的一切spring-data 的力量。
它还允许本机查询、空间索引和许多其他很酷的东西。
注意:它还很不成熟,但仍然值得一看。
There is also the very new spring-data-gremlin which does everything of what you want with the power of spring-data.
It also allows native queries, spatial indexes and a bunch of other cool stuff.
Note: It is quite immature, but still worth a look.