Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

MongoDB

phil-fuber edited this page Jan 22, 2015 · 8 revisions

Mongo-DB

Collection structure

{
  "_id": "e6c95631dfcf1993f1cc63dbe6d70222ef5d2e58",
  "item_id": "...",
  "item_category": "...",
  "institute": "...",
  "public_domain": true,
  "trace": [
    {
      "question": "fragen_id_1",
      "answer": true
    },
    {
      "question": "fragen_id_1",
      "answer": true
    }
  ],
  "timestamp": "2014-10-31 00:00:00"
}

Notes on the collection structure:

  • the public domain can be true, false or null
  • the timestamp is the date and time at which the result was determined by the PDC

Basic Setup (Spring with MongoDB)

  • Download and install MongoDB from http://www.mongodb.org/downloads

  • Use the default settings. If changes need to be made then ensure that the changes are reflected in the corresponding property files of the application

  • The following Maven settings in the .POM file are required:

     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-data-mongodb</artifactId>
     </dependency> 
    <repositories>
     <repository>
             <id>spring-releases</id>
             <name>Spring Releases</name>
             <url>http://repo.spring.io/libs-release</url>
         </repository>
     </repositories>
     <pluginRepositories>
         <pluginRepository>
             <id>spring-releases</id>
             <name>Spring Releases</name>
             <url>http://repo.spring.io/libs-release</url>
         </pluginRepository>
     </pluginRepositories> 
Clone this wiki locally