Well, I'm having a problem when I get a list of phones from the bank, these phones have to belong to a CPF.
In my query I do this
public List<Telefone> buscar(Proprietario proprietario) {
return this.manager.createQuery("select e from Telefone e where
e.cpfProprietario = :cpfProprietario").setParameter("cpfProprietario", proprietario.getCpfProprietario()).getResultList();
}
Where am I going wrong?
The Telephone entity has a relationship with an owner.
If you need more information, feel free to contact us at github
p>