Spring Data 2020.0 - New and Noteworthy in Spring Data R2DBC 1.2

Engineering | Mark Paluch | November 18, 2020 | ...

This release is a major milestone in Spring's R2DBC support. Spring support for R2DBC started as an experimental project two years ago to evaluate how a reactive SQL integration might look. With this release, Spring Data R2DBC underwent a major refactoring by moving several components into a dedicated spring-r2dbc module and deprecating components that are provided by the Spring Framework. Besides that change, Spring Data R2DBC ships with the following most notable changes:

  • Add lifecycle callbacks through the EntityCallback API
  • Reactive auditing
  • Pass-through of enum values and Postgres Geo types

This Week in Spring - November 17th, 2020

Engineering | Josh Long | November 18, 2020 | ...

Hi, Spring fans! Can you believe it's already November 17th, 2020!? We're weeks away from Thanksgiving here in the US and then the end-of-year holidays. I, for one, can not believe it. You know what else is pretty wild? The first week of January will be ten years of writing This Week in Spring!

I've got a pretty busy appearance schedule between now and the end of the year though. I'd love to see you at any of these events.

  1. 2020-11-17 - Ireland Bash Talk - I'll be speaking _tonight_ (California, USA / PDT time)
  2. 2020-11-18 - JCConf keynote speaker - Rsocket Revolution
  3. 2020-11-18 - QCon Plus - I'll be doing a presentation and doing live Q&A
  4. 2020-11-19 - the Kansas City JUG
  5. 2020-11-22 - GDG Devfest Shanghai
  6. 2020-11-23 - JavaHispano JUG presentation
  7. 2020-12-03 - Knoxville JUG
  8. 2020-12-04 - I'll be speaking at the jLove conference, participating in both a talk and a panel
  9. 2020-12-07 - Join me, Spring Developer Advocate Josh Long for this 90 minute exploration of all things reactive and RSocket in Spring. This is ideally timed for folks in APJ, so sign up now!
  10. 2020-12-15 - I'll be speaking at the Warsaw, Poland JUG - Warszawa JUG. Check the website for more details as they become available
  11. 2020-12-23 - Join me on our VMWare Tanzu channel - I'll be doing a "Code" stream at noon PDT

And, with all that out of the way, we've got a ton of stuff to get to this week so let's dive right in!

Case Study: Elasticsearch sink

Engineering | Soby Chacko | November 16, 2020 | ...

This article is part of a blog series that explores the newly redesigned Spring Cloud Stream applications based on Java Functions. In this post, we will look at the Elasticsearch sink that allows us to index records in Elasticsearch, and its corresponding Consumer function.

Here are all the previous parts of this blog series.

Spring Data 2020.0 - New and Noteworthy in Spring Data MongoDB 3.1

Engineering | Christoph Strobl | November 13, 2020 | ...

The Spring Data MongoDB 3.1 release is one of the modules that highly benefited from the recent changes in the Spring Data Commons module, by leveraging the infrastructure built there to bring reactive features like auditing and SpEL. The following snippet gives you an impression of what this means for declarative MongoDB queries using SpEL:

@Query("{ 'supervisor' : ?#{ hasRole('ROLE_ADMIN') " +
  "? new Document('$regex', '*') : principal.name } }")
Flux<Person> findAllFilteredByRole();

@EnableReactiveMongoAuditing uses the common infrastructure so you can keep track of changes easily.

This Week in Spring - November 10th, 2020

Engineering | Josh Long | November 11, 2020 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! It's November 10th, 2020, as I write this and I, for one, can not believe that we're closer to 2021 than we are to 2019 at this point. That's insane. Time has absolutely rocketed by in some senses and stood utterly still in others. Odd year, this one.

I hope you're all doing well! I'm at the Reactive Summit today (virtually, of course). This afternoon I was on a wonderful panel with all sorts of folks from around the ecosystem. And soon, around 17:30 or so, if memory serves, I'll be speaking about RSocket and its use in…

Spring Data 2020.0 - New and Noteworthy in Spring Data JDBC 2.1

Engineering | Jens Schauder | November 10, 2020 | ...

As part of the 2020.0.0 version of Spring Data, we released Spring Data JDBC 2.1. This article presents the four most interesting changes in this version.

#Use @Value on Entity Constructor Arguments

In some cases, not all the data that goes into an entity comes from the ResultSet of a query. You now may provide an @Value annotation with a SPeL expression that is evaluated, and the result is passed as an argument upon construction of the…

New in Spring 5.3: Improved Cron Expressions

Engineering | Arjen Poutsma | November 10, 2020 | ...

If you regularly listen to A Bootiful Podcast, you might have heard about the improvements we made to Spring Framework’s cron support. Cron expressions are mostly used in Spring applications through the @Scheduled annotation. In Spring 5.3, we introduced the CronExpression class, which represents — you guessed it — a cron expression.

CronExpression replaces CronSequenceGenerator, which is based on java.util.Calendar and which has several known issues that none of the Spring team members felt comfortable solving. Introducing a new type allowed us to use the superior java.time APIs, solve the…

Spring Data 2020.0 - New and Noteworthy - A general Overview

Engineering | Christoph Strobl | November 06, 2020 | ...

Spring Data 2020.0, based on Spring Framework 5.3, is out and with it, a ton of new features across the various stores, which are covered by the individual modules. While posting highlights along with the milestone announcements, we wanted to give you a more detailed description of the new features in a series of blog posts. These posts will cover, among other things:

  • Reactive Context Access features in Data Commons.
  • Lifecycle callbacks and baselining to Spring R2DBC in R2DBC.
  • General Repository and store-specific Redis Cache Metrics.
  • Neo4J reactive repositories.
  • Paging repository APIs for Spring Data for Apache Geode.
  • Geoshape, index, and reactive search improvements for Spring Data Elasticsearch.
  • Partial filter and aggregation hints in MongoDB.
  • @Bean row mappers for the JDBC module.
  • Per-statement key spaces definition for the Apache Cassandra abstraction.
  • Declarative Couchbase N1QL queries.

Get the Spring newsletter

Stay connected with the Spring newsletter

Subscribe

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all