Being a Java developer, I would like to know that only by having mongoDB driver jar file, would I be able to use mongoDB.
Or is there anything else I have to do?
drivers are certanly out there
you can use following maven dependency:
I would also recomend investigating Spring-MongoDB integration. The thing actually offers some amazing features as annotated queries and auto generation of repositories code with simple CRUD operations implemented for collections.
as far as I know, hibernate as well as JPA notation are not adopted to support MongoDB and NoSQL databases.
Spring-Mongo is trying to wrap JPA around it's own datasources implementation, but I havent tryed it.
There is a lot of things why this would work badly even theoretically.
Your answer has made to to look more into NoSQL databases... So I hope that with developement of UnQL some big frameworks will show up soon.
Andrew Moko
Ranch Hand
Joined: Dec 16, 2011
Posts: 55
posted
0
Askar Akhmerov wrote:Hi Peter,
as far as I know, hibernate as well as JPA notation are not adopted to support MongoDB and NoSQL databases.
Spring-Mongo is trying to wrap JPA around it's own datasources implementation, but I havent tryed it.
There is a lot of things why this would work badly even theoretically.
Hibernate OGM haven't heard about that. Thanks for the knowlege.
Have you tried it? Just wandering if they are trying to apply transactions management to NoSQL ;)
UPD. The guys clearly state that framework is mainly aimed to support Hibernate's Infinispan db[General Architecture section]. Which is probably most suitable data layer representation to use with the framework.
Hibernate OGM haven't heard about that. Thanks for the knowlege.
Have you tried it? Just wandering if they are trying to apply transactions management to NoSQL ;)
UPD. The guys clearly state that framework is mainly aimed to support Hibernate's Infinispan db[General Architecture section]. Which is probably most suitable data layer representation to use with the framework.
My guess is that it comes with all hibernate features - Security, Transaction Management etc etc. And Yes, as per the documentation they are using Infinispan as the persistence store. Can't the store be totally decoupled from the api JUST SO it's possible to plug a SQL/ NoSQL to it without having to rely on infinispan? And the persistence store NEEDS to follow a well-defined specification?? My two cents