Immutables v2.8.2 Release Notes

Release Date: 2019-11-16 // almost 3 years ago
  • ๐Ÿ›  Main feature of this release is DISTINCT statement in Criteria. Plus, small functionalities and bugfixes.

    Notable changes

    Criteria

    • ๐Ÿ‘Œ Support for DISTINCT modifier in queries. Simple DSL to allow chaining DISTINCT / LIMIT / OFFSET modifiers (9d639225)

      // example of DISTINCT queryrepository.find(person.isActive.isTrue()) .orderBy(person.name.asc()) .select(person.name) .distinct() .limit(2) .fetch();

    Geode backend

    Codegen

    • โœ‚ Remove unnecessary empty line between hashCode() and toString() functions introduced by previous commit
    • โš  Suppress ErrorProne error (with @SuppressWarnings(Immutable)) for lazy hashCode field (#1114)

    Gson / JSON Adapters

    • ๐Ÿ›  Fixed issue where integers are always printed as doubles (#1120) by Ben Mazzarol (@bmazzarol)
    • ๐Ÿ›  Fixed issue using the jackson XML streaming parser where boolean tokens are always strings (#1120) by Ben Mazzarol (@bmazzarol)

    Other changes

    • ๐Ÿ”„ Change dependency scope of jackson-datatype-guava and jackson-datatype-jdk8 to test in ElasticSearch backend. They were used only in tests.
    • Enable errorprone static analysis in criteria module (ef5f1a267)

    Thanks to all contributors: