Results 1 to 10 of 13

Thread: Spring Data JPA, custom methods and inheritance

Threaded View

  1. #1
    Join Date
    May 2011
    Posts
    5

    Question Spring Data JPA, custom methods and inheritance

    I wanted to have some a DAO (MyDAO) extending a base DAO interface (BaseDAO). When using Spring Data JPA (1.0.0M2 or the last nightly build) to implement the DAO, I get the following error:

    Code:
    You have custom methods in interface test.MyDAO but not provided a custom implementation!
    I can workaround this by overriding the method in MyDAO but this is not really nice as it'll require to redefine the methods from BaseDAO in all actual DAOs.

    Is there anyway to force SDJ not to consider my base methods as regular methods, not custom ones?
    Last edited by gabuzo; May 12th, 2011 at 03:55 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •