anchor.diff:  # This is a minimal sample file declared connection to MongoDB
   # ===================================================================
   management:
  -  type: mongodb # repository type
  -  mongodb: # mongodb repository
  -    dbname: # mongodb name (default gravitee)
  -    host: # mongodb host (default localhost)
  -    port: # mongodb port (default 27017)
  +  type: mongodb             # repository type
  +  mongodb:                  # mongodb repository
  +    dbname:                 # mongodb name (default gravitee)
  +    host:                   # mongodb host (default localhost)
  +    port:                   # mongodb port (default 27017)
   ----
   
   NOTE: This is the minimum sample file to start with a mongo server, number of other properties control the behavior of mongo database, let's jump into it
  
positive.code: [source,yaml]
  ----
  # ===================================================================
  # JPA REPOSITORY PROPERTIES
  # ===================================================================
  management:
    type: jpa # repository type
    jpa: # jpa repository
      hibernateDialect: org.hibernate.dialect.PostgreSQL9Dialect # hibernate dialect
      driverClassName: org.postgresql.Driver # database driver
      url: jdbc:postgresql://localhost/gravitee # database url
      username: user # database username
      password: password # database password
      showSql: false # show sql mode (default to false)
  ----
  
  NOTE: We've just declared a connection to a PostgresSQL Database server.
  
negative.code: # This is a sample file declared all properties for MongoDB Repository
  # ===================================================================
  management:
    type: mongodb                 # repository type
    mongodb:                      # mongodb repository
      dbname:                     # mongodb name (default gravitee)
      host:                       # mongodb host (default localhost)
      port:                       # mongodb port (default 27017)
      username:                   # mongodb username (default null)
      password:                   # mongodb password (default null)
      connectionPerHost:          # mongodb connection per host (default 10)
      connectTimeOut:             # mongodb connection time out (default 0 -> never)
      maxWaitTime:                # mongodb max wait time (default 120000)
      socketTimeout:              # mongodb socket time out (default 0 -> never)
      socketKeepAlive:            # mongodb socket keep alive (default false)
      maxConnectionLifeTime:      # mongodb max connection life time (default null)
      maxConnectionIdleTime:      # mongodb max connection idle time (default null)
      minHeartbeatFrequency:      # mongodb min heartbeat frequency (default null)
      description:                # mongodb description (default null)
      heartbeatConnectTimeout:    # mongodb heartbeat connection time out (default null)
      heartbeatFrequency:         # mongodb heartbeat frequency (default null)
      heartbeatsocketTimeout:     # mongodb heartbeat socket time out (default null)
      localThreshold:             # mongodb local threshold (default null)
      minConnectionsPerHost:      # mongodb min connections per host (default null)
      sslEnabled:                 # mongodb ssl mode (default false)
      threadsAllowedToBlockForConnectionMultiplier: # mongodb threads allowed to block for connection multiplier (default null)
      cursorFinalizerEnabled:     # mongodb cursor finalizer enabled (default false)
  ----
  
  NOTE: All theses properties allow you to fine tuned your MongoDB connection
  