سؤال

نحن أحاول تحويل تطبيق Oracle Oracle SQL القديم إلى SQL وتم اختيارنا Mongo DB.

هل هناك أي دعم orm ل Mongo DB مثل السبات الذي يقلل من الترميز لدينا؟

هل يمكننا استخدام مواصفات JPA لبناء تطبيق ل Mongo DB؟

إذا كانت JPA، فمن الأفضل أن تختار البائع orm ولماذا؟

هل توصلوا إلى لهجة NO-SQL ل Mongo DB حتى نتمكن من إنشاء تطبيق باستخدام DB غير صحيح؟

هل كانت مفيدة؟

المحلول

p>

href="http://www.datanucleus.org/products/accessplatform_3_1" rel="nofollow"> DataNucleus JPA يوفر الثبات الكامل إلى MongoDB باستخدام حقيقي JPA (على عكس بيانات الربيع ومورفيا وغيرها التي لها برمجة تطبيقاتها الخاصة، وبالتالي ليس لديك قابلية مباشرة - ولكن قد لا يكون هذا اهتمامك الأول)؛في حالة DataNucleus، يوفر JPA2 (مع بعض المعاينة JPA2.1 ميزات).كما أنه يوفر ثبات JPA إلى HBase و RDBMS و Neodatis و Excel و ODF و XML و JSON و LDAP وبعض الآخرين في حال احتاجك إلى إمكانية التنقل لأولئك.

نصائح أخرى

hibernate 4.0 يحتوي على OGM الذي يدعم MongoDB يمكنك أن ترى مثالا على السبات من MongoDB هنا مثال Porting Seam Hotel مثال على 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