Question

Nous essayons de convertir notre ancienne application Oracle SQL en NO-SQL et nous avons choisi Mongo DB.

Y a-t-il un support ORM pour Mongo DB comme Hibernate qui réduit notre codage?

Pouvons-nous utiliser la spécification JPA pour créer une application pour Mongo DB?

Si JPA, quel fournisseur orm est le mieux à choisir et pourquoi?

ont-ils proposé de mettre en dialecte no-sql pour Mongo dB afin que nous puissions créer une application à l'aide d'un DB non relationnel?

Était-ce utile?

La solution

Datanucleus JPA offre une persistance complète à mongodb en utilisant réel jpa (Contrairement aux données de printemps, Morphia, etc. qui ont leurs propres API, vous n'avez donc pas de portabilité directe - mais cela peut ne pas être votre principale préoccupation);Dans le cas du Datanuclevé, il fournit JPA2 (avec quelques fonctionnalités de prévisualisation JPA2.1).Il fournit également une persistance JPA à HBASE, RDBMS, NEODATIS, Excel, ODF, XML, JSON, LDAP et quelques autres au cas où vous auriez besoin de la portabilité de ceux-ci.

Autres conseils

Hibernate 4.0 a OGM qui prend en charge MongoDB, vous pouvez voir un exemple d'hibernate avec MongoDB ici ici Portage de l'exemple de réservation d'hôtel à 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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top