I'm using JHipster to generate an app. I have this map: Arquivo has OneToMany relationship with Tabela. And Tabela has OneToMany relationship with Campo.
Arquivo has a property called "versao" (string). I want to do something like:
Page<Campo> findAllByArquivoVersao(String versao, Pageable pageable);
But I'm receiving this error:
Failed to create query for method public abstract org.springframework.data.domain.Page br.com.app.repository.CampoRepository.findAllByArquivoVersao(java.lang.String,org.springframework.data.domain.Pageable)! No property arquivoVersao found for type Campo!
I'm able to do something like findAllByTabelaId...so my mapping is ok. How can I do a query filtering by a property of my parent's parent?