Skip to content

Commit e251ea7

Browse files
committed
Upgrading JDBC examples to 4.0.0-M4
1 parent d9aaeb2 commit e251ea7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

jdbc/howto/idgeneration/src/test/java/example/springdata/jdbc/howto/idgeneration/IdGenerationApplicationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void cantSaveNewAggregateWithPresetId() {
4444
before.id = 42L;
4545

4646
// We can't save this because Spring Data JDBC thinks it has to do an update.
47-
assertThatThrownBy(() -> minions.save(before)).getRootCause().isInstanceOf(IncorrectUpdateSemanticsDataAccessException.class);
47+
assertThatThrownBy(() -> minions.save(before)).isInstanceOf(IncorrectUpdateSemanticsDataAccessException.class);
4848
}
4949

5050
@Test

jdbc/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
<url>https://projects.spring.io/spring-data-jdbc</url>
1717
<inceptionYear>2017</inceptionYear>
1818

19+
<properties>
20+
<spring-framework.version>7.0.0-M7</spring-framework.version>
21+
<spring-data-bom.version>2025.1.0-M4</spring-data-bom.version>
22+
</properties>
23+
1924
<modules>
2025
<module>basics</module>
2126
<module>composite-ids</module>

0 commit comments

Comments
 (0)