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.
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
@Embeddedbasically overwrite the registration as a simple type.Then one could annotated embedded ids accordingly and resolve the issue.