Uploaded image for project: 'Spring Data JPA'
  1. Spring Data JPA
  2. DATAJPA-1372

Error while using ExampleMatcher with @embeded entity in spring data jpa

    Details

      Description

      I have an entity with @embeded object in spring data jpa,

      While querying example matcher I am getting bellow error:

      java.lang.IllegalArgumentException: Unexpected path type for address.mylocation.country. Found org.hibernate.query.criteria.internal.path.SingularAttributePath@2d0c22c6 where From.class was expected. at org.springframework.data.jpa.convert.QueryByExamplePredicateBuilder.getPredicates(QueryByExamplePredicateBuilder.java:142) ~[spring-data-jpa-2.0.5.RELEASE.jar:2.0.5.RELEASE]

      My Source code is available here : https://github.com/harsh-hardaha/springboot-h2-example

        Attachments

          Activity

            People

            • Assignee:
              mp911de Mark Paluch
              Reporter:
              harsh.hardaha@gmail.com Harsh
              Last updater:
              Mark Paluch
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: