Sunday, 24 November 2019

Spring Data MongoDB tutorial

      Introduction to Spring Data MongoDB
      MongoDB: Hello World in memory application
      Installing and setup MongoDB
      MongoDB: Hello World Application
      Model Relationships
            Model relationships using embedded documents
            Model relationships via reference ids
      Exploring MongoRepository interface
            saveAll: Save collection of documents
            findAll: Get all the documents
            Sort all the documents with given properties
            insert: Insert new document
            save or update the document
            save vs insert
            Get Documents by Example
            Adding custom query methods
            Wrap the query method result as stream
      Working with MongoTemplate
      Working with Criteria object
      Querying documents on embedded fields
      Create Index
      @Transient: Exclude a field from persisting
      @Field: Customize field names
      @PersistenceConstructor: Constructor to use while instantiating
      Create Custom type converter

Previous                                                    Next                                                    Home

No comments:

Post a Comment