What's the difference between Spring Data MongoDB and Hibernate OGM for MongoDB?

后端 未结 3 1123
名媛妹妹
名媛妹妹 2020-12-13 06:44

I have not used Spring Data before but I\'ve used Hibernate ORM a number of times for MySQL based application. I just don\'t understand which framework to choose between the

3条回答
  •  天命终不由人
    2020-12-13 07:14

    One can Just go with SpringData. If you recall Spring ORM also uses some JPA things such as Entity, Transaction and provided best commination of things from JPA and Hibernate APIs a. Spring community will take care in future versions if JPA is getting more matured for NoSQL. Though it is not the main reason. Most of reasons are described by @Oliver Drotbohm. Read more documentation of SprinData and further analyse your data model, scalability on continuity/growth of data store, find best fit for your solution and consider suggestion given by @Davide. Many cases SpringData has got more success rate than JPA while integrating with MongoDB.

提交回复
热议问题