Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: update dependency org.springframework.data:spring-data-bom to v2023.1.2 #1421

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions samples/pom.xml
Expand Up @@ -19,6 +19,7 @@
<groupId>com.google.cloud.samples</groupId>
<artifactId>shared-configuration</artifactId>
<version>1.2.0</version>
<relativePath />
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion samples/spring-data-jdbc/pom.xml
Expand Up @@ -23,7 +23,7 @@
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-bom</artifactId>
<version>2023.0.5</version>
<version>2023.1.2</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand Down
Expand Up @@ -20,6 +20,7 @@
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.annotation.PersistenceCreator;

public abstract class AbstractEntity {

Expand All @@ -30,6 +31,9 @@ public abstract class AbstractEntity {

@LastModifiedDate private OffsetDateTime updatedAt;

@PersistenceCreator
public AbstractEntity() {}

@Override
public boolean equals(Object o) {
if (!(o instanceof AbstractEntity)) {
Expand Down
Expand Up @@ -18,6 +18,7 @@

import java.math.BigDecimal;
import java.time.LocalDate;
import org.springframework.data.annotation.PersistenceCreator;
import org.springframework.data.relational.core.mapping.Table;

@Table("albums")
Expand All @@ -33,6 +34,7 @@ public class Album extends AbstractEntity {

private Long singerId;

@PersistenceCreator
public Album() {}

public Album(String title) {
Expand Down
Expand Up @@ -17,6 +17,7 @@
package com.google.cloud.spanner.sample.entities;

import java.time.OffsetDateTime;
import org.springframework.data.annotation.PersistenceCreator;
import org.springframework.data.relational.core.mapping.Table;

@Table("concerts")
Expand All @@ -32,6 +33,9 @@ public class Concert extends AbstractEntity {

private OffsetDateTime endTime;

@PersistenceCreator
public Concert() {}

public Concert(Venue venue, Singer singer, String name) {
this.venueId = venue.getId();
this.singerId = singer.getId();
Expand Down
Expand Up @@ -16,6 +16,7 @@

package com.google.cloud.spanner.sample.entities;

import org.springframework.data.annotation.PersistenceCreator;
import org.springframework.data.annotation.ReadOnlyProperty;
import org.springframework.data.relational.core.mapping.Table;

Expand All @@ -31,6 +32,7 @@ public class Singer extends AbstractEntity {

private Boolean active;

@PersistenceCreator
public Singer() {}

public Singer(String firstName, String lastName) {
Expand Down
Expand Up @@ -16,6 +16,7 @@

package com.google.cloud.spanner.sample.entities;

import org.springframework.data.annotation.PersistenceCreator;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

Expand Down Expand Up @@ -44,6 +45,9 @@ public class Track extends AbstractEntity {

private Double sampleRate;

@PersistenceCreator
public Track() {}

public Track(Album album, int trackNumber, String title) {
setAlbumId(album.getId());
this.trackNumber = trackNumber;
Expand Down
Expand Up @@ -16,6 +16,7 @@

package com.google.cloud.spanner.sample.entities;

import org.springframework.data.annotation.PersistenceCreator;
import org.springframework.data.relational.core.mapping.Table;

@Table("venues")
Expand All @@ -24,6 +25,9 @@ public class Venue extends AbstractEntity {

private String description;

@PersistenceCreator
public Venue() {}

public Venue(String name) {
this.name = name;
}
Expand Down
2 changes: 1 addition & 1 deletion samples/spring-data-mybatis/pom.xml
Expand Up @@ -28,7 +28,7 @@
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-bom</artifactId>
<version>2023.0.5</version>
<version>2023.1.2</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand Down