Skip to content

Releases: researchgate/restler

6.0.1

13 Feb 14:34
Compare
Choose a tag to compare

What's Changed

  • Restored error handling for duplicate key exceptions
  • fix: Restored error handling for duplicate keys by @rg-sebastian-k in #28

New Contributors

Full Changelog: 6.0.0...6.0.1

6.0.0

13 Feb 14:34
Compare
Choose a tag to compare

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:
    • preUpdate now uses List instead of UpdateOperations
    • MongoBaseServiceDao::createUpdateOperations has 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
      • @Embedded is no longer supported. Use @entity for embedded documents
      • Change @entity(value = "docs", noClassnameStored = true) to @entity(value = "docs", useDiscriminator = false)
  • 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

Full Changelog: 5.0.2...6.0.0

5.0.0

13 Feb 14:29
Compare
Choose a tag to compare

Backwards incompatible change: Upgraded mongoDB client to 4.1.1

What's Changed

  • Added debug logs for group by queries by @dulanja33 in #22
  • Upgraded mongo-java-driver to 4.1 and morphia to 1.6.1 by @VPriesnitz in #23

New Contributors

Full Changelog: 4.0.0...5.0.0

4.0.0

13 Feb 14:28
Compare
Choose a tag to compare

Backwards incompatible change: Upgraded morphia 1.3.2 to 1.5.8. This changes the morphia namespace from 'org.mongodb.morphia' to 'dev.morphia'