Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plopezgit/sprint2_t4_mongodb_java
Extra. Getting Started with MongoDB and Java, CRUD Operations
https://github.com/plopezgit/sprint2_t4_mongodb_java
connector crud-operation crud-sample db java maven maven-pom mongodb scss
Last synced: 3 days ago
JSON representation
Extra. Getting Started with MongoDB and Java, CRUD Operations
- Host: GitHub
- URL: https://github.com/plopezgit/sprint2_t4_mongodb_java
- Owner: plopezgit
- Created: 2023-11-02T09:49:36.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-30T17:37:26.000Z (about 1 year ago)
- Last Synced: 2024-11-27T20:21:21.720Z (2 months ago)
- Topics: connector, crud-operation, crud-sample, db, java, maven, maven-pom, mongodb, scss
- Language: Java
- Homepage: https://www.mongodb.com/developer/languages/java/java-setup-crud-operations/
- Size: 1.67 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sprint2_T4_MongoDB_Java
It tests the set up for Java project with Maven and execute a MongoDB command, exploring the most CRUD operations using the MongoDB Java driver.
It follows: https://www.mongodb.com/developer/languages/java/java-setup-crud-operations/
#### Create
###### Insert one
![Optic](samples/CreateClass.png)
![Optic](samples/opticFind.png)
###### Insert multiple
![Optic](samples/CreateClassMult.png)
![Optic](samples/opticFind2.png)
#### Read
###### Specfic document
![Optic](samples/ReadSpecific.png)
###### Range of documents (by list)
![Optic](samples/ReadRange.png)
###### Range of documents (by iterator)
![Optic](samples/ReadRangeIterator.png)
###### Range of documents (by Consumer functional interface implementation)
![Optic](samples/ReadRangeConsumer.png)
#### Update
###### Update one
![Optic](samples/UpdateOne.png)
_There is others update operators examples:_
- **set** will set a value.
- **inc** will increment a value.
- **rename** will rename a field.
- **mul** will multiply the value by the given number.
- **addToSet** is similar to push but will only push the value in the array if the value doesn't exist already.#### Delete
![Optic](samples/DeleteOne.png)