Properly map our Morphia models so indexes will be created

This commit is contained in:
Colin McDonald 2016-05-29 02:45:17 -04:00
parent 125eeec747
commit 2248788961

View File

@ -121,7 +121,7 @@ public final class APIv3 {
MorphiaLoggerFactory.registerLogger(SLF4JLoggerImplFactory.class);
Morphia morphia = new Morphia();
morphia.mapPackage("net.frozenorb.apiv3.accessor");
morphia.mapPackage("net.frozenorb.apiv3.models");
morphia.getMapper().getConverters().addConverter(new UUIDConverter());
datastore = morphia.createDatastore(mongoClient, config.getProperty("mongo.database"));