Announcement Announcement Module
Collapse
No announcement yet.
Spring Data JPA - Generic Repository parametrized by MappedSuperclass Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Data JPA - Generic Repository parametrized by MappedSuperclass

    I have some entities that inherit a MappedSuperclass.
    I try to create a generic repository parametrized by my MappedSuperclass but I don't find any solution.
    I wonder if it's possible to do it, or itís absolutely necessary to use Entities?

    thank you for answering.

  • #2
    I've just hit a similar issue, and wondering if there's an answer to this?

    Is there a way to use:

    public interface SomeAbstractRepository extends JpaRepository<SomeAbstractClass,Long>

    given

    @MappedSuperclass
    public class SomeAbstractClass {}

    Comment

    Working...
    X