R2DBC does not support composite keys currently. I wonder how we may implement a many-to-many relationship for now? For example, given the two entities: and their schemas: I can create a table for the many-to-many mapping: But how should we define the mapping class ItemTag in kotlin/java? Or is it fine to omit the @Id? Then there cannot be any
Advertisement
Tag: r2dbc
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 -…
Obtaining a nested objects using Spring Data R2DBC
I’m new to Project Reactor and R2DBC. How to receive and merge Flux with Mono properly using Spring Data R2DBC reactive repositories? Parent: @Table(“parent”) public class …
Advertisement