Results 1 to 2 of 2

Thread: Invalid derived Query

  1. #1
    Join Date
    Oct 2012
    Posts
    1

    Default Invalid derived Query

    Hi, sorry if this question had been answered before, I searched the forum and could not find an answer. I am using STS on a new Spring Data JPA project. I had an @NamedQuery findByTheXXX defined on the entity class and a corresponding method in the repository interface findByTheXXX. The STS complains the method in the interface about invalid derived query, no property the found in the entity. but if I ran the test on that method it worked fine. Is there anyway to stop that error in STS?

    Thanks!!

  2. #2
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,637

    Default

    Hey!

    There is no way to stop this (at the moment) in STS, but there is an JIRA ticket for that:
    https://issuetracker.springsource.com/browse/STS-2888

    We hope to improve this for STS 3.2.0.

    -Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

Posting Permissions

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