Immutables v2.8.0 Release Notes

Release Date: 2019-09-20 // over 4 years ago
  • ๐Ÿ›  (not a bugfix release yet, sorry, expect more bugfixes in 2.8.x versions)

    2.8.0 is available on Maven Central now

    Criteria & Repositories API

    Combine power of immutable objects with the flexibility of querying them

    ๐Ÿš€ Immutables team is pleased to announce Immutables 2.8.0 release.

    ๐Ÿš€ Major focus of this release was Criteria API which enables
    ๐Ÿ‘‰ users to generate model-specific query DSL. Generated class (along with criteria runtime) allows accessing different backends in a unified, fluent and type-safe manner.

    Benefits over raw driver API usage or string based abstractions (DSLs) are:

    1. Compile-time checking and type safety allows for much fewer mistakes
    2. IDE auto-completion guides through the choice of fields and operators
    3. Best in class readability due to drastically reduced number of parentheses and specially designed DNF approach ๐Ÿ”จ 4. Easier model refactoring

    Benefits over existing frameworks like Spring Data, Morphia, QueryDSL or jOOQ are:

    1. Derive immutable implementation, query DSL, repository and more from a single definition ๐Ÿ”€ 2. Pluggable Sync / Async / Reactive execution models
    2. Pluggable backend implementations ๐Ÿ“„ 4. Generated or custom Repositories (aka DAOs) can be controlled to generate reading / writing or watching operations on entities

    ๐Ÿš€ Full release announcement here: https://github.com/immutables/immutables.github.io/blob/src/2.8.0-release.md
    Getting started with criteria API: https://immutables.github.io/criteria.html