Using MongoDB

MongoDB is one of the supported databases that can be selected when your application is being generated.

When MongoDB is selected:

  • Spring Data MongoDB will be used to access the database. This is very close to Spring Data JPA, and this is why MongoDB support is very close to the (default) JPA support
  • Mongeez is used instead of Liquibase to manage database changes
  • The entity sub-generator will not ask you for entity relationships, as you can't have relationships with a NoSQL database (at least not in the way you have relationships with JPA)
  • As MongoDB is not a Java application, JHipster cannot run an in-memory version of the database for running unit tests: in order to have your tests working, you will need to start manually a MongoDB instance