spring-data-r2dbc Questions

7

Solved

I have a simple entity, consisting of two UUIDs: @Table("library") public class LibraryDao { @Id private UUID id; @NonNull private UUID ownerId; } I have a corresponding table in Pos...
Forgot asked 27/1, 2022 at 11:36

5

For the below code, Get and update operation in the repository work fine. But save operation is not persisting the data into the tables. It works fine if I implement the Repository myself. After th...
Koosis asked 29/1, 2019 at 8:12

4

Solved

I have an application which is using Spring data JPA and hibernate envers for db auditing. Since R2DBC doesn't support auditing yet, is it possible to use combination of both in a single applicati...
Debauched asked 8/6, 2020 at 0:21

1

Solved

Libraries: r2dbc-postgresql-0.8.6.RELEASE r2dbc-pool-0.8.5.RELEASE r2dbc-spi-0.8.3.RELEASE postgresql-42.2.18 List item Problem: I tried to bulk insert using R2DBC (PostgreSQL) with code as below...

1

This thread is a continuation of the Github issue at: https://github.com/spring-projects/spring-data-r2dbc/issues/194 Context: Hi, I just tried a very simple Exemple, based on two reactive reposito...
Schulman asked 25/9, 2019 at 9:7

6

Solved

In Spring Data R2DBC I can log SQL queries by using logging.level.org.springframework.data.r2dbc=DEBUG in the application.properties. However, this doesn't log the actual values that are bound...
Toxicosis asked 1/4, 2020 at 14:13

0

Background: I have an application-wide universal exception handler to translate exceptions coming from R2dbcRepository, such as (an excerpt just to show the intended purpose): @Component public cla...
Largish asked 24/7, 2023 at 14:7

2

Solved

I have to re-implement a few back-end services and one of the main requirement is to make the whole flow reactive. Previously the services used hibernate with PostgreSQL so the mentioned connection...

2

I am trying to replicate some functionality that I was using in Spring Data JPA in the new reactive Data r2dbc. I am aware that r2dbc is not a full-fledged ORM but wanted to understand as what coul...
Paregmenon asked 17/6, 2020 at 4:54

3

I have a simple question, is it possible to auto-generate tables using spring boot data r2dbc for MySQL or other databases? in JPA I added spring.jpa.hibernate.ddl-auto=update and created tables T...
Naomanaomi asked 1/12, 2019 at 9:44

2

Solved

I'm trying to leverage H2 for testing and have the following configuration in src/test/resources/application.yaml: spring: r2dbc: url: r2dbc:h2:file://testdb I have an empty test annotated wit...

5

Solved

I'm playing around with Spring Boot and the reactive jdbc driver called r2dbc. In my main application I'm using Postgres as a database and now I want to the use h2 for the tests. And the Flyway mig...
Hereinbefore asked 14/10, 2020 at 14:7

5

Solved

Cannot understand how to configure build.gradle for using querydsl annotation processor without any jpa/jdo/mongo. I want to use @QueryEntity annotation to generate Q classes so then I will be able...
Serinaserine asked 28/1, 2020 at 14:11

1

Solved

I am exploring possible ideas when it comes to designing the one-to-one and one-to-many relationships while using Spring Data R2DBC. As Spring Data R2DBC still do not support relationships natively...

2

Solved

I have these simplified tables CREATE TABLE address( id VARCHAR(36) NOT NULL PRIMARY KEY, zip VARCHAR(5) NOT NULL, city VARCHAR(32) NOT NULL ) CREATE TABLE customer( id VARCHAR(36) NOT NULL PR...
Brigitta asked 18/10, 2019 at 16:19

4

In Spring data JPA there is an @Sql annotation which is very handy for setting up integration tests for persistence layer. It can roll out test data before each test and perform a clean up after it...
Grimy asked 29/9, 2020 at 8:8

4

Solved

I am creating a quick project using R2DBC and H2 to familiarize myself with this new reactive stuff. Made a repository that extends ReactiveCrudRepository and all is well with the world, as long as...
Onlybegotten asked 3/11, 2019 at 20:3

1

Solved

Motivation I have a service which I want to make @Transactional. My service is storing complex data in multiple tables, there is a referential integrity between the tables. public class MyData { //...
Lanciform asked 13/5, 2022 at 19:37

3

Update 15/08/2020: Looks like Enum support was added on Jun 16. R2DBC commit. Does H2DBC support PostgreSQL enums? I checked they git page but it doesn't mention anything about it. If it does, how ...
Deledda asked 5/2, 2020 at 22:12

2

I'm trying to do the following; but using org.testcontainers.containers.MySQLR2DBCDatabaseContainer can anyone show me how this can be achieved, as MySQLR2DBCDatabaseContainer doesn't seem to hav...
Erotica asked 20/8, 2020 at 10:0

2

I am using spring r2dbc and ReactiveCrudRepository, I have a field which I need to ignore for when update query is generated @Data @Table(PRODUCT_TABLE) public class ProductEntity { @Id @Generat...
Blunger asked 16/5, 2020 at 15:23

2

Solved

I am trying to test a service, but the Repository is always null. When using a JPA repository, I never had this issue. I am not sure if it has something to do with ReactiveCrudRepository. Has anyon...
Synergetic asked 18/11, 2021 at 18:11

2

Solved

Since R2DBC is reactive and non blocking I would like to understand the benefit of using R2DBC in a simple RESTful CRUD service Assume a spring boot application is exposing a RESTful service using ...
Shout asked 9/7, 2021 at 7:43

1

Solved

In the below two examples, the behavior of processing a flux stream seems to be different. Example 1 : public static void main(String[] args) throws InterruptedException { log.debug(" Before ...

1

Looks like Spring Data r2dbc does not support composite primary key. Is that a known issue? I dont see support for @Embedded.
Glogau asked 12/2, 2021 at 4:29

© 2022 - 2024 — McMap. All rights reserved.