Skip to content

Tag: r2dbc-postgresql

How to implement ManyToMany in r2dbc

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