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 chainingDISTINCT / LIMIT / OFFSET
modifiers (9d639225)
// example of DISTINCT query
repository.find(person.isActive.isTrue())
.orderBy(person.name.asc())
.select(person.name)
.distinct()
.limit(2)
.fetch();
Geode backend
- Escape reserved words (eg.
type
,time
) in Geode OQL (da9b7e1)
Codegen
- Remove unnecessary empty line between
hashCode()
andtoString()
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
andjackson-datatype-jdk8
totest
in ElasticSearch backend. They were used only in tests. - Enable errorprone static analysis in criteria module (ef5f1a267)
Thanks to all contributors: