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

Mapping schema data base with Data Base in R2DBC

I'm starting with a Spring Boot + WebFlux + Postgresql project. It is necessary to carry out the mapping of the bank schema, but in the @Table annotation the schema information is not present, thinking about it I wanted to understand how it would be…
0
votes
1 answer

Problem extending Spring WebFlux application with reactive DB client: conflicting Maven dependencies?

I have a small working Spring WebFlux app made basing on this code: https://github.com/chang-chao/spring-webflux-reactive-jdbc-sample As far as I've understood this is some kind of mix between purely reactive programming and usual blocking…
0
votes
1 answer

R2DBC maps to do relationships between tables in a database

How to use maps in spring data R2DBC, to take map tables/entities with relationships received/sent to a database? Using r2dbcCustomConversions, @WritingConverter and @ReadingConverter. Someone could give.some.example? Thanks a lot
GtdDev
  • 748
  • 6
  • 14
0
votes
2 answers

Understanding problems switchIfEmpty and switchIfEmpty

I try to write web app using kotlin/webflux/r2dbc:postgresql But I have proplem. I can't understand why switchIfEmpty call if result of work hackerService.resetPassword not empty Controller @PostMapping("/reset/password/{link}", consumes =…
0
votes
1 answer

Opt for spring-data-elasticsearch 3.2 while staying with spring-boot 2.3

We have a web service running on spring-boot 2.3 with spring-data-r2dbc, which is only available since spring-boot 2.3. Recently we need to integrate with an existing elasticsearch 6.x cluster, which is not supported by the spring-data-elasticsearch…
GJ.
  • 870
  • 5
  • 9
  • 26
0
votes
1 answer

Change spring data r2dbc context to use R2dbcRepositories in a different database

How can I change spring data r2dbc repositories target-datatabase (maybe I am talking about 'Context')? Let me explain better. I am managing(ConnectionFactory Properties) 'connection factory' to execute SQL-DDL scripts in any database I want - OK;…
GtdDev
  • 748
  • 6
  • 14
0
votes
0 answers

Hibernate not found table in schema

I have a bit a problem, I have several microservices, but one throws an exception that others don't throws and work perfect ... [2020-09-28 16:55:38.304]|ERROR|TIBCO EMS Session Dispatcher…
0
votes
1 answer

r2dbc postgres driver - how to extract PostgresqlConnection from PooledConnection

Hi, my Spring Boot application has r2dbc connection pool autoconfigured using a property file: spring.r2dbc.url=r2dbc:pool:postgres://localhost:5432/ecom spring.r2dbc.username=xxx spring.r2dbc.password=yyy Now I need to get…
0
votes
0 answers

Numeric types mapping issue in Spring Data R2dbc with postgres

I tried to use Spring Data R2dbc/Postgres in a sample application. Spring Boot 2.4.0-M2 R2dbc Postgres (managed by Spring Boot) Spring Data R2dbc 1.2.0-M2(managed by Spring Boot) The table scripts. CREATE SEQUENCE IF NOT EXISTS…
Hantsy
  • 8,006
  • 7
  • 64
  • 109
0
votes
1 answer

R2dbcRepository BeanCreationException No property findAll found for type

I try to update the whole application and use the reactive programming approach with PostgreSQL, so I'm updating the repositories and make them extend from R2dbcRepository, updated also related services to handle Mono and Flux. When I try to run the…
skander
  • 109
  • 1
  • 13
0
votes
1 answer

repository binding problem with spring r2dbc

I try to use Spring R2DBC with postgres driver. I have the following repository: package fr.misc.database.repos.computed; import fr.misc.database.entities.computed.OrdreDeTravailPivotComputedEntity; import…
Adrien Ruffie
  • 195
  • 4
  • 16
0
votes
1 answer

Why the type of connectTimeout property of r2dbc-spi is java.time.Duration and how Can I use it in URL connection?

I'm using URL connection with application.yml file for my r2dbc connection. I tried to set connectTimeout property but got this error: Caused by: java.lang.ClassCastException: class java.lang.String cannot be cast to class java.time.Duration…
심시은
  • 339
  • 1
  • 5
  • 21
0
votes
1 answer

ReaciveCrudRepository with Awaitility

writing tests and not sure how can one rewrite this code: SomeEntity entity = Awaitility.await() .atMost(1, TimeUnit.SECONDS) .until({ -> repository.findById(id) }, { entry -> entry.isPresent() }) .get() to…
user994612
  • 35
  • 5
0
votes
1 answer

Difference between io.r2dbc.pool.PoolingConnectionFactoryProvider.MAX_SIZE vs ConnectionPoolConfiguration max size in r2dbc

I am trying to understand the difference between 2 configurable parameters while creating a connection pool using r2dbc-pool. I was able to configure the connection pool with the help of the below post: Connection pool size with postgres…
0
votes
0 answers

Unable to run SQL script to initialize test data for Spring Boot test

I have a Spring Boot 2.3 reactive application with webflux and r2dbc. Normally it runs on MS Sql database. I want unit tests to run on H2. I got to the point when correct database driver is loaded based on which application.properties file is in use…
Dmitry
  • 35
  • 1
  • 6