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 r2dbc @createdBy field setting

I've got an abstract BasicEntity class implementing Persistable. It's purpose to set basic fields : @CreatedDate @Column(value = "create_time") private Long createTime; @CreatedBy @Column(value = "create_user") private…
tarmogoyf
  • 298
  • 3
  • 17
0
votes
1 answer

spring webflux query one date and update

I have a RESTful API for Query one data by id , and update ExpiredTime = ExpiredTime + input day. With my limited experience with Reactive Programing, my code looks ugly. How to improve it? @Autowired R2dbcEntityTemplate r2dbcEntityTemplate; …
0
votes
1 answer

Is processing all the rows from a table as Flux blocking or locking in R2DB?

Is the following construct blocking or locking in any possible way? Is it a proper way of using R2DB? If not, how else to process all the records of a table in a reactive way? My concern is what is happening with the database connection before the…
0
votes
1 answer

Spring data repository - common method for all repositories

I am using Spring boot 2 with Reactive repository for executing stored proc which will return the count. I have 30 stored proc and all of them will just return a number and takes no arguments. So created a model for stored proc StroedProcDomain.java…
user1578872
  • 7,808
  • 29
  • 108
  • 206
0
votes
1 answer

How to connect database Oracle TNS information using R2DBC with Spring Reactive?

I'm trying to connect oracle database in my spring project using reactive. I need the reactive database connectivity with Oracle TNS specifications. Can you please help?
Mathan
  • 43
  • 1
  • 9
0
votes
1 answer

umlauts not working when running spring app in docker container

I have this test code in a service: import io.r2dbc.postgresql.codec.Json // ... logger.info("test") val x = "{\"x\": \"ü\"}" logger.info(x) val typeRef = object : TypeReference>() {} val xParsed =…
Stuck
  • 11,225
  • 11
  • 59
  • 104
0
votes
1 answer

How to get Flux-Results into a set of a Mono-Bean

I have the following scenario: I have a ProductFamily that has a set of Products. I load the ProduktFamily from the database and then I want to load its Products and insert them into ProduktFamily.products. Easy in Spring MVC (because of JPA) but…
MarkusJackson
  • 225
  • 2
  • 12
0
votes
2 answers

Record not persisted into R2DB using Spring boot webflux reactive

I am trying to build an application using reactive. Initially i used to get proper response but after modifying the code, the record is not persisted into Database, but when I changed the logic to modify the response body, I see a success response…
ging
  • 219
  • 7
  • 20
0
votes
0 answers

How to JOIN (alternative to Mapping) multiple tables in Spring Webflux (IntelliJ) (Postgres database)?

How to Join multiple tables in Spring WebFlux for Relational Database? In Spring Boot, in order to join two tables, we can perform different mappings (@OneToOne, @ManyToOne, @OneToMany). One example is shown below for mapping between doctor and…
0
votes
1 answer

r2dbc Unit Test - repository doesn't return anything after saving entity

I'm learning Reative jdbc with R2DBC MySQL. I have a repository like this: public interface UserRepository extends ReactiveCrudRepository { Mono findByEmail(String email); I created an unit test in order to test the…
AleGallagher
  • 1,745
  • 7
  • 30
  • 40
0
votes
0 answers

R2DBC: How to bind data class for sql query without needing all parameters?

I am trying to bind my data class for a sql query but I am getting a error when I am not using all the parameters from my data class. Is there a way to check in the sql query which parameters needs binding and which ones do not or allow to bind…
MrAndre
  • 811
  • 1
  • 10
  • 26
0
votes
1 answer

How to Join multple table in R2DBC and Spring WebFlux?

//1. Person Entity class Person { private Integer id; private String name; Private Address addId; } //2. Address Entity class Address { private Integer addId; private String city; Private String state; Private String…
0
votes
0 answers

Sql server database with xml column and spring boot r2dbc

I have a sql server database with a table containing an xml column. I'm begining with reactive programming with spring boot webflux / r2dbc. When tying to retrieve data from the table I got an exception. Caused by: java.lang.NullPointerException:…
tweetysat
  • 2,187
  • 14
  • 38
  • 75
0
votes
0 answers

JSON_SET operation using Spring data relational Update fails with invalid json text

I am using R2dbc jasync driver to generate and execute update query on my mysql db table containing a json column. I am trying to do a JSON_SET operation on a column using R2dbcEntityTemplate and…
0
votes
1 answer

Saving into database returns all the user data including encoded password

I'm trying to build a user registration based on the tutorial from Amigoscode Youtube: Java Tutorial, Git Repository, but I make it reactive with webflux, postgresql and R2DBC. Now I'm struggling on saving the user data into the database. If I do it…