6.0.0
Backwards incompatible changes
- Upgraded to mongodb-driver-sync 4.10.2 and morphia 2.4.4
- Upgraded from Java 8 to Java 11
- Interface changes:
preUpdatenow uses List instead of UpdateOperationsMongoBaseServiceDao::createUpdateOperationshas been removed
- Morphia required changes
- BasicDAO morphiaDao is no longer exposed. Use Datastore datastore instead. Examples:
- instead of morphiaDao.save(entity);, use datastore.save(entity);
- instead of morphiaDao.createQuery().filter("test", 123).asList(); use datastore.find(entityClazz).filter(Filters.eq("test", 123)).iterator().toList();
- Annotation changes
- BasicDAO morphiaDao is no longer exposed. Use Datastore datastore instead. Examples:
- For ServiceQuery projections, limit, offset, and order to be applied, use MongoBaseServiceDao::get or getOne
- If you issue the query not via Restler, you can use MongoBaseServiceDao::toFindOptions to prepare the FindOptions from the ServiceQuery
- Note if upgrading to MongoDB 4.2+:
- If you use MongoServiceDao::findAndModify or a replace document operation that includes upsert: true and is on a sharded collection,
- the filter must include an equality match on the full shard key.
What's Changed
- Major update to Java 11, mongodb-driver-sync 4.10.2 and morphia 2.4.4 by @niallkelly in #27
New Contributors
- @niallkelly made their first contribution in #27
Full Changelog: 5.0.2...6.0.0