Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-569

Fix documentation on underscores in property references of derived query methods

    XMLWordPrintable

    Details

      Description

      I have an object Log with a property user_id . I have a repository for it with the method:

      public interface LogRepository extends PagingAndSortingRepository<Log, String> {
      
      	public List<Log> findByUser__id(String user__id); 
      }
      

      Yet, the code will not compile giving the following error: Invalid derived query! No property user found for type Log!. Please note that I have escaped the property with a double underscore.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              checklist Assaf
              Last updater:
              Oliver Drotbohm
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: