Questions tagged [spring-data-r2dbc]

Spring Data R2DBC is a module of Spring Data based on R2DBC R2DBC stands for Reactive Relational Database Connectivity.

See https://spring.io/projects/spring-data-r2dbc for more information.

412 questions
0
votes
1 answer

Spring Data with r2dbc using Query annotation

I am exploring Spring Data with r2dbc. I am trying to use a custom repository method in my interface extended from ReactiveCrudRepository, which takes a Flux of Object as Parameter and Return a Flux of the same Object. @Query("SELECT id, name …
0
votes
0 answers

Unable to get connection from MSSql while trying with Spring Data R2DBS

I am using Spring Data R2DBS for MSSQL db. I am trying to connect to an instance using Windows Authentication with JavaKerberos authentication, instead of some SQL Authentication. When I am trying with JDBC using below property, I am able to get a…
0
votes
1 answer

Reactive calls in @Post_construct

I'm trying to understand what is the right way of implementing post_construct methods in Spring Webflux. On startup of an application I need to read data from the DB (I have an R2dbcRepository configured), and then perform some logic and save result…
Ilya G.
  • 61
  • 7
0
votes
2 answers

R2DBC Postgres connection fails

My connection config: @Configuration @EnableR2dbcRepositories public class DatabaseConfiguration extends AbstractR2dbcConfiguration { @Bean public PostgresqlConnectionFactory connectionFactory() { return new…
ritratt
  • 1,703
  • 4
  • 25
  • 45
0
votes
0 answers

Why Does R2DBC RowsUpdated() Return wrong count of updated rows?

I have an issue with R2DBC rowsUpdated(). I'm trying to update just one row in the database and get expect it to return 1 count to me for updated rows. But rowsUpdated() return 4 even if one row is updated. The code sample is as follows; May I ask…
Ibrahim Ates
  • 375
  • 2
  • 5
  • 15
0
votes
0 answers

Obtaining a nested objects using R2DBC + Webflux

Spring Data R2DBC does not support nested objects, so how correctly retrieve and join nested object to parent object? I have class Foo (child), Bar (Parent), BarDTO: @Data public class Foo { @Id private String id; private String…
0
votes
1 answer

Spring Data R2DBC master slave configuration

Is there a way in Spring Data R2DBC to setup a second datasource as slave read-only ?
Antonio
  • 181
  • 1
  • 15
0
votes
1 answer

@Value on R2dbc table fields

Given the following entity/table defined in a Spring/KotlinCoroutines project. @Table("workers") data class Worker( @Id val id: UUID? = null, @Column(value = "photo") var photo: String? = null, // see:…
0
votes
0 answers

Multiple Spring Converters for same object

Is it possible to register 2 Converters (@ReadConverter annotated class) in Spring Boot/R2dbc so that I can have: A service that uses a repository for an object and reads it using 1 converter for example R2dbcEntityTemplate Another service that…
Gfalco
  • 77
  • 3
  • 13
0
votes
0 answers

AWS Redshift Serverless connect with Spring R2DBC

I am trying to determine if connecting to AWS Redshift Serverless can be achieved with Spring R2DBC. I know its possible with the provisioned Redshift option by specifying the url, username, password & using R2DBC & postgres drivers. So, I am trying…
0
votes
0 answers

Is there any reason why multi-select queries return R2dbcTimeoutException?

I implemented a service method by combining two queries that only perform read(SELECT) into a transaction, and when I run that method, the trailing query is throwing R2dbcTimeoutException, returning a null value, as shown in the image. What is the…
0
votes
2 answers

Upgrade from oracle-r2dbc version 0.4.0 to 1.0.0 is resulting in class cast exception while update

I was trying to upgrade R2DBC from 0.4.0 to 1.0.0. while doing that I am getting error in update which was working fine in version 0.4.0. Build.gradle that I am using plugins { id 'org.springframework.boot' version '2.7.2' id…
0
votes
1 answer

Spring Data R2DBC with JPA annotations

I'm using JPA annotation in order to annotate my entities: import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name =…
Jordi
  • 20,868
  • 39
  • 149
  • 333
0
votes
0 answers

Composite key on spring-boot r2dbc postgresql?

I have a composite key which i consider in a same time as primary key and composite key storeId addressId customerId How i can create my entity and my repository based on above information and using r2dbc and postgresql ??
DrDray
  • 55
  • 5
0
votes
1 answer

Soring Data Reactive: Criteria API reactive

I'm moving my repositories into reactive repositories. I'm using webflux: org.springframework.boot spring-boot-starter-webflux
Jordi
  • 20,868
  • 39
  • 149
  • 333