question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Composite Key via @Embeded plus @Id [DATAJDBC-352]

See original GitHub issue

alpet opened DATAJDBC-352 and commented

Enable usage of @Embdedded and @Id together. I see two scenarios here. One would be for read only repositories and the other for the CRUD repository. With respect of the legacy applications very often read only is enough. How would Embedded participate in a query ?

One reason to use a lower level persistence framework in my opinion are legacy applications who very often have Composite Keys. Emabling such feature in spring data jdbc would increase the possible users of the framework


13 votes, 14 watchers

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:80
  • Comments:11

github_iconTop GitHub Comments

56reactions
imbanankocommented, Jan 2, 2021

hi any updates on this?

23reactions
Kshitij09commented, Sep 11, 2021

Any updates on this? I need this feature to be able refer an aggregate across multiple roots using a pojo class representing the composite key

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support for Composite Key via @Embeded plus @Id ... - GitHub
alpet opened DATAJDBC-352 and commented Enable usage of @Embdedded and @Id together. I see two scenarios here. One would be for read only...
Read more >
The Ultimate Guide on Composite IDs in JPA Entities
There are two options to do this: The first approach – is to use the @Embeddable class, which contains all fields representing a...
Read more >
Composite Key in SQL: Your Ultimate Guide to Mastery
A composite key in SQL can be defined as a combination of multiple columns, and these columns are used to identify all the...
Read more >
Spring Data JPA Composite Key with @EmbeddedId - amitph
Guide to learn Spring Data JPA Composite Key with @EmbeddedId. Learn what is Primary Key and Composite Primary Key, and how Spring Data...
Read more >
Composite Primary Keys in JPA - Baeldung
If you're using IntelliJ, JPA Buddy is super helpful. The plugin gently guides you through the subtleties of the most popular JPA ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found