Major revisions for Spring Data

Spring Data Kay is here

Jane Elizabeth
Spring Data Kay
Shutterstock / Kudryashka

Spring Data’s long awaited Kay release is now live. What’s new for this release? Lots, including tons of new features, upgraded compatibility, and more fun for the whole Spring Data family.

Spring Data Kay is here. This is the first major revision of the umbrella project since Spring Data was originally released in 2009. As you might expect, this means there are a number of big changes in the works.

To be clear, Spring Data is a bit of an umbrella term for a whole host of projects run by Spring. However, all of these projects are aimed at bringing familiar and consistent Spring-based programming models for data access while maintaining the special traits of the underlying data store.

Spring Data makes it easy to use data access tech, relational and non-relational databases, map-reduce frameworks, cloud-based data services, and more.

SEE MORE: Spring Framework 5.0 is here

What’s new in Spring Data Kay?

It’s not a surprise that there’s a whole bunch of changes in this latest update. (We’ve all changed a lot since 2009, why wouldn’t Spring Data follow suit?) Let’s take a look at all the shiny new options, shall we?

Spring Data Kay boasts a number of new features, including:

  • Upgrade to Spring Framework 5.0, Java 8 and JavaEE 7 as baseline
  • Revised repository APIs (better method names, Optional, etc.)
  • A revised repository composition model
  • Support for reactive data access for Cassandra, Couchbase, MongoDB and Redis
  • Addition of Spring Data Geode to the release train
  • Use of nullability annotations and advanced runtime checks on those
  • Kotlin support for null-safety and immutable data classes supported through Kotlin constructors
  • General Java 9 compatibility

The release will be included in the upcoming Spring Boot milestone to give us time for some further refinements and a first service release for Boot 2.0’s GA.

SEE MORE: Spring 5: key features, trends and its love of reactive programming

Going reactive

Spring Data Kay is the first Spring Data release to go reactive. Some of the first support arrived late last year, with MongoDB, Apache Cassandra, and Redis as the initial set of supported stores. (After all, these three ship reactive drivers already, making them natural prototype candidates.) In the meantime, Couchbase is now supported as well.

Spring Data Kay has support for reactive repositories, reactive templates, and reactive connections with Spring Data Redis. There are a number of executable examples for many of the reactive features shipped with Kay that you can find here:

In conclusion

Spring Data Kay is a major revision to the underlying foundation of all the Spring Data projects. Improved support and now upgrades to the baseline for Spring Framework 5, Java 8, and Java EE 7 all mean good things for everyone. So, if you’re interested, please head on over to Spring Data for the latest Kay release!

Author
Jane Elizabeth
Jane Elizabeth is an assistant editor for JAXenter.com

Comments
comments powered by Disqus