Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreOn behalf of the team and everyone who has contributed, I’m delighted to announce the first milestone of the 2026.0.0 release train.
We now support type-safe property paths and property references as initiative to reduce the need for stringly-typed programming when referring to properties within an entity.
Java variants:
PropertyPath.from("name", Person.class) // existing String-based API
PropertyPath.of(Person::getName) // type-safe property reference expression
PropertyPath.from("address.country", Person.class) // existing nested path API
PropertyPath.of(Person::getAddress).then(Address::getCountry) // type-safe composed path expression
PropertyReference.of(Secret::getSecret)
Kotlin variants:
PropertyReference.of(Secret::secret)
PropertyPath.of(Person::address / Address::city)
allowing type-safe usage through e.g.:
Sort.by(Person::getFirstName, Person::getLastName)
Type-Safe property-paths are available in Spring Data Commons 4.1 M1 and the following modules:
Query, Criteria and Update API for type-safe query construction.Criteria and Update API for type-safe query construction.Expressions utility for an improved CriteriaBuilder API usage experience.Query, Criteria and Update API for type-safe query construction.Besides that, this milestone ships with enhancements, bugfixes, and dependency upgrades.
You can find more details in our Release Notes.
The upcoming Spring Boot 4.1 M2 milestone will pick up the release for your convenience by next week.
4.1 M1 - Javadoc - Documentation - Changelog4.1 M1 - Javadoc - Documentation - Changelog5.1 M1 - Javadoc - Documentation - Changelog8.1 M1 - Javadoc - Documentation - Changelog4.1 M1 - Javadoc - Documentation - Changelog5.1 M1 - Javadoc - Documentation - Changelog4.1 M1 - Javadoc - Documentation - Changelog5.1 M1 - Javadoc - Documentation - Changelog4.1 M1 - Javadoc - Documentation - Changelog6.1 M1 - Javadoc - Documentation - Changelog6.1 M1 - Javadoc - Documentation - Changelog4.1 M1 - Javadoc - Documentation - Changelog