Using JavATE with MongoDB

Introduction

Since project startup, JavATE
has been supporting out of the box two types of repositories for storing entities:

Memory repositories

Relational Databases

The former, used mainly for testing purposes, are based on simple java Maps.

The support for relational databases is based essentially on Hibernate
ORM.

JavATE is highly extensible and users can write their own repositories (an example here
).

Since interest in NoSQL databases is constantly growing the JavATE dev team decided to add support for some of them, so, starting from version 0.8, you can find a new JavATE module called dominate-morphia that add support for MongoDB
using Morphia
, a lightweight type-safe library for mapping Java objects to/from MongoDB
.

Setup

If you are using Maven, or Ant with Ivy or another dependency manager that is able to access a Maven repository setting up a project that use the new module is really simple.

Using Maven all you have to do is to put the following inside your dependencies in the project pom