Category: Database Tutorials

Database Tutorials

1 2 3 10 / 25 POSTS
Spring Data MongoDB remove _class column

Spring Data MongoDB remove _class column

By default, SpringData’s MappingMongoConverter add an extra “_class [...]
Java MongoDB : Get collection from database

Java MongoDB : Get collection from database

In Java, you can use db.getCollection(“your collection name”) to ge [...]
Java MongoDB : Convert JSON data to DBObject

Java MongoDB : Convert JSON data to DBObject

MongoDB comes with “com.mongodb.util.JSON” class to convert JSON da [...]
Spring Data MongoDB – Auto Sequence ID example

Spring Data MongoDB – Auto Sequence ID example

In this tutorial, we will show you how to generate an auto-incremen [...]
Spring Data MongoDB : Delete document

Spring Data MongoDB : Delete document

In Spring data for MongoDB, you can use remove() and findAndRemove( [...]
Spring Data MongoDB : Query document

Spring Data MongoDB : Query document

Here we show you a few examples to query documents from MongoDB, by [...]
Spring Data MongoDB : Update document

Spring Data MongoDB : Update document

In Spring data – MongoDB, you can use following methods to update d [...]
1 2 3 10 / 25 POSTS