MongoDB到Java的集成 [英] MongoDB to Java integration

查看:317
本文介绍了MongoDB到Java的集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否有像Hibernate这样的Mongo DB的ORM支持?我们正在尝试将旧的Oracle SQL应用程序转换为NO-SQL,并且我们选择了Mongo DB。我们可以使用JPA规范为MongoDB构建应用程序吗?



如果JPA,哪个ORM供应商最好选择以及为什么?

他们是否为MongoDB提供了非sql语言,以便我们可以使用非关系数据库构建应用程序?

解决方案

DataNucleus JPA 使用 real JPA提供了对MongoDB的完全持久性(与Spring-Data,Morphia等相比,它们有自己的API),因此您不具有直接可移植性 - 但这可能不会成为你的主要关注点);在DataNucleus的情况下,它提供了JPA2(带有一些预览JPA2.1功能)。它还提供了HBase,RDBMS,NeoDatis,Excel,ODF,XML,JSON,LDAP和其他一些JPA持久性,以防您需要可移植性。


We am trying to convert our old Oracle sql application into NO-SQL and we have chosen Mongo DB.

Are there any ORM support for Mongo DB like Hibernate that reduces our coding?

Can we use JPA specification to build an application for Mongo DB ?

If JPA, which ORM Vendor is best to choose and why ?

Have they come up with no-sql dialect for Mongo DB so that we can build an application using a non relational DB ?

解决方案

DataNucleus JPA provides full persistence to MongoDB using real JPA (as opposed to Spring-Data, Morphia etc which have their own APIs, hence you don't have direct portability - but that may not be your prime concern); in the case of DataNucleus it provides JPA2 (with some preview JPA2.1 features). It also provides JPA persistence to HBase, RDBMS, NeoDatis, Excel, ODF, XML, JSON, LDAP and some others in case you ever need portability to those.

这篇关于MongoDB到Java的集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆