Skip to content

Composite Ids with JMolecule #2327

Description

@schauder

JMolecule registers a converter for id types.
This makes them simple types for Spring Data JDBC, which disables treatment as Embedded types.

This issue surfaced after analyzing https://stackoverflow.com/questions/79902309/spring-data-jdbc-with-composite-id
for which there is a reproducer here: https://github.com/schauder/stackoverflow/tree/main/jdbc/composite-id-with-jmolecules

This issue doesn't aim to fix the problem described at SO directly, but the idea is to make @Embedded basically overwrite the registration as a simple type.
Then one could annotated embedded ids accordingly and resolve the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions