Properly map our Morphia models so indexes will be created
This commit is contained in:
parent
125eeec747
commit
2248788961
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user