Reputation: 512
Context: I'm on Windows 10 using Netbeans IDE 8.1 .
I downloaded Hibernate OGM from sourceforge at this adress:
I then extracted all its files.
I found under hibernate-ogm-5.3.1.Final\dist\lib\mongodb
the following files
I copied these files under my project's folder.
When I try to add a new driver in netbeans:
I get the message/error Driver Class is missing
...
What am I doing wrong?
Upvotes: 0
Views: 1286
Reputation: 8206
The MongoDB Java driver is not a JDBC driver. That's the reason you cannot add it to Netbeans as such. This plugin should do what you are looking for: http://plugins.netbeans.org/plugin/52638/nbmongo
I've never used it though because I prefer to connect using the MongoDB client.
The JDBC standard is for relational databases and, at the moment, there isn't an equivalent for NoSQL databases. For this reason, Hibernate OGM uses its own dialect to connect to the datastore. The dialect will then use, underneath, the required library for the chosen db.
Upvotes: 3