Announcement Announcement Module
Collapse
No announcement yet.
Spring Data JPA - Repositories for Entities with Compound Primary Key Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Data JPA - Repositories for Entities with Compound Primary Key

    Is there any way using Spring Data repositories with entities having a compound key (i.e. being annotated by @IdClass (my.special.entityPK.class) ) ?

    I miserably failed do do so!

    As an aside:
    It seems that paging (resp. counting for paging) fails for queries having a "group by" clause. Are there any suggested techniques how to page results for such queries when using Spring Data JPA?

    Thanks,
    Hubert

  • #2
    Starting with Version 1.0.1 counting queries for queries with group-by seem to be corrected.

    Comment


    • #3
      We currently only support @EmbeddedId for compound keys. You might wanna watch and vote [0] for our progress on supporting @IdClass.

      [0] https://jira.springsource.org/browse/DATAJPA-50

      Comment

      Working...
      X