Consider the following HQL query:
@Query("SELECT DISTINCT owner FROM Owner owner left join owner.pets WHERE owner.lastName LIKE :lastName%")
void find(String lastName);
User should be able to navigate from :lastName% (excluding : and %) to the lastName method parameter.