Skip to content

javax.persistence.Table annotation not picked up #351

@gabrielshanahan

Description

@gabrielshanahan

When a custom table name is specified using javax.persistence.Table, it is not picked up - it needs to be specified using org.springframework.data.relational.core.mapping.Table. This makes it extremely impractical to use r2dbc in a multi-module setting, where one module sets up the database and contains corresponding entities annotated in the classical way and a second, r2dbc base module, wants to pick them up, connect to the database and use them.

In this situation, one has no choice but to extend the corresponding entity in the module using r2dbc, copy paste the fields, and annotate the result with org.springframework.data.relational.core.mapping.Table, which is pretty awful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions