Spring Team
Christoph Strobl

Christoph Strobl

Spring Data Committer

Pregarten, Austria

Blog Posts by Christoph Strobl

What's new in Spring Data Lovelace for MongoDB?

The past year has seen a lot of enhancements brought to the NoSQL Store including a bunch of new features and extended capabilities. We collaborated closely with the driver team at MongoDB, so the release already ships with decent support for sessions, change streams, schema validation, and (of course) transactions.

The most interesting new feature is probably MongoDB 4.0’s support for Multi-Document Transactions. If you have followed this blog before, you have probably read our Hands on Guide that explains both ClientSessions (which are the main building block) and transactions themselves. In short, SpringData provides you with everything you need to leverage Spring managed transaction support in your project. To use it, declare MongoTransactionManager in your configuration, as the following example shows:

Read more...

Hands on MongoDB 4.0 transactions with Spring Data

With MongoDB 4.0, ACID transactions have arrived in the Document store, enforcing all-or-nothing execution and maintaining data integrity. So, let’s get straight to it by looking at both the synchronous and the reactive execution models.

At the time of this writing, MongoDB multi-document transactions are supported across a single replica set and feel like the transactions you are probably familiar with from relational databases. Looking at the driver API, one feels immediately at home:

try (ClientSession session = client.startSession()) {

    session.startTransaction();

    try {

        collection.insertOne(session, documentOne);
        collection.insertOne(session, documentTwo);

        session.commitTransaction();

    } catch (Exception e) {
        session.abortTransaction();
    }
}
Read more...

Spring Data Lovelace M3 released

On behalf of the Spring Data team, I’m pleased to announce the availability of the third milestone of the Lovelace release train.

This release ships with updates for all store modules that contain new features, improvements, and bug fixes. Notable changes include:

Read more...

New in Spring Data Lovelace M2 - Get ready for MongoDB 3.6 and 4.0.

With the latest Spring Data Lovelace Milestone 2 release, the MongoDB module is stacking up new features that are coming your way in the near future. As you might have followed in the news, MongoDB 4 is going to bring ACID transactions to the Document store. The latest MongoDB 3.6 server release already ships with the main building block for those, client sessions.

You can read all about isolation levels and causal consistency in the MongoDB reference. In short, sessions let you execute operations in an order that respects their causal relationships.

Read more...

Spring Data Lovelace M1 released.

On behalf of the Spring Data team I’m happy to announce the first milestone of the Lovelace release train. The release ships over 200 tickets fixed! The most important new features are:

  • JPA 2.2 result streaming.
  • MongoDB Validator and JsonSchema support.
  • Support for MongoDB Change Streams.
  • Neo4J OGM 3.1 upgrade.
  • Exist/Count projections as well as a fluent template API in Spring Data for Apache Cassandra.
  • Spring Data for Apache Geode added JCache Annotation support.
  • Query By Example for Redis repository abstractions.
  • Spring Data REST offers more fine grained method exposure mechanisms.
Read more...

Spring Data Ingalls SR5 released

On behalf of the Spring Data team, I’d like to announce the availability of Ingalls SR5 release.
It ships with over 40 issues fixed in total and is therefore a recommended upgrade for all users. For your convenience the service release is going to be picked up by the upcoming Spring Boot 1.5.5.

The complete list of issues fixed can be found here.

Spring Data Ingalls SR5

Read more...

Spring Data Release Train Kay RC1 & RC2 Released

On behalf of the Spring Data team, I’d like to announce the availability of the first and second release candiate of Spring Data Kay. This release ships over 120 tickets fixed. The curated changelog can be found in our release wiki, the complete list of issues fixed can be found here. Due to a severe issue in RC1 we immediately issued RC2.

Notable changes

  • Enhanced tooling support by adding @NonNullApi and @Nullable annotations in Spring Data Commons to be picked up by your favorite IDE.
  • Fine-tuning of the fluent API for MongoDB including a reactive counterpart and aggregation support.
  • Spring Data for Apache Geode joins the release train.
  • RedisCache got overhauled and is now way easier to configure.
  • Cassandra 3.0 driver upgrade and support for @Indexed and @SASI.
  • Child document support for Spring Data for Apache Solr.
  • A lot of internal cleanups.
Read more...

What's new in Spring Data Hopper?

As we’ve just shipped the GA release of Spring Data release train Hopper, let’s take a deeper look at the changes and features that come with the 13 modules on the train. A very fundamental change in the release train’s dependencies is the upgrade to Spring Framework 4.2 (currently 4.2.5) as baseline. This is in preparation for the upcoming 4.3 release of the framework. We also took the chance to upgrade our Querydsl integration to 4.x (currently 4.1) which required some breaking changes in very core abstractions. Besides that, Hopper contains quite a few significant major version changes its modules.

Read more...

What's New In Spring Data Release Gosling?

Over 300 issues fixed across 12 projects makes it pretty hard to keep track on what has happened since the last release. So here’s a more detailed excerpt of some of the new features we’ve been cooking during the last iteration.

Ad-hoc JPA fetch graphs.

Since the Dijkstra release train we have been able to refer to the named entity graph declared on the entity through the @EntityGraph annotation in JPA-backed repositories. In the example below this forces firstname and lastname to be loaded eagerly, while all others remain lazily loaded.

Read more...

Spring Data Fowler SR 1 released

Hot on the heels of the final service updates for the release trains Dijkstra and Evans, the first service release for the Spring Data release train Fowler has just been shipped to repo.spring.io and Maven Central. The Fowler SR1 maintenance release includes a total of 119 issues solved and is a recommended upgrade for all users.

Read more...