我们正在尝试将我们的旧Oracle SQL应用程序转换为No-SQL,我们选择了Mongo DB。

是否存在对Mongo DB的任何orm支持,如Hibernate,可以减少我们的编码?

我们可以使用JPA规范来构建Mongo DB的应用程序吗?

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

他们有没有为mongo db提供的没有sql方言,以便我们可以使用非关系db构建应用程序?

有帮助吗?

解决方案

Datanucleus JPA 使用 Real JPA(与春天数据相反,有自己API的春天数据,因此您没有直接的便携性 - 但可能不是您的主要关注);在Datucleus的情况下,它提供JPA2(具有一些预览JPA2.1功能)。它还为HBase,RDBMS,Neodatis,Excel,ODF,XML,JSON,LDAP和其他一些提供了JPA持久性,以防您需要对那些的可移植性。

其他提示

hibernate 4.0支持mongodb,您可以在此处查看mongodb的一个例子移植缝酒店预订示例到ogm

You can choose Morphia. It is the most stable one over other ORM tools for Mongodb.

Some of the other tools are :

You can find the full list in the MongoDB Third Party Frameworks and Libs part.

Try Kundera. Much better performance than Morphia and offers a lot of easy way to code/implement.

-Vivek

You should also have a look at EclipseLink's MongoDB support which was released in version 2.4.

You may have a look at Spring Data and check out this Tutorial

PlayORM also supports MongoDB now. PlayORM is an object NoSQL mapping solution so you can write POJO’s and let it deal with all the details of marshalling/unmarshalling to MongoDB. Visit its documentation here

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top