title: use object in my queries @query java spring
body: <p>I get an error when I tried to reference an object in my query</p>
  
  <pre><code>@Query("select o from Account o where o.ownerId=:owner AND o.name like :#{#customer.name}") public List&lt;Account&gt; findBusinessObjectsForCurrentUserById(@Param("owner") String owner,@Param("customer") Customer customer);
  </code></pre>
  
  <p>Error message :</p>
  
  <pre><code>No parameter binding found for name customer!; nested exception is java.lang.IllegalArgumentException: No parameter binding found for name customer!
  </code></pre>
  
  <p>Thanks</p>