Support Composite ID in R2DBC
This needs #2011 first.
Related to #574
Any news now that issue 574 is closed?
This was done as part of #574.
This was done as part of #574.
I was using
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.r2dbc</groupId>
<artifactId>r2dbc-h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-r2dbc</artifactId>
</dependency>
and it did not work for my table (H2) of
CREATE TABLE IF NOT EXISTS FILE_META ( FILE_ID uuid not null, TS BIGINT not null, USER_ID varchar(64) not null, FILE_NAME varchar(128), VECTORIZED boolean not null, MIMETYPE varchar(128), URI varchar(256), PRIMARY KEY (FILE_ID, TS) );
until I changed from spring-boot-starter-data-r2dbc to spring-boot-starter-data-jdbc. The error occurs when I tried to call save method of FileMetaRepository (which extends ReactiveCrudRepository) for data insertion. My speculation is that it has something to do with custom id generation when id is composite (I used BeforeConvertCallback).
Please create a new issue and include a full reproducer.
Please create a new issue and include a full reproducer.
https://github.com/spring-projects/spring-data-relational/issues/2096