Well, Ronald Testuo answer me about this question:
1º - The method was incorrect, the correct method is:
Code:
findByNamedQueryAndNamedParam
2º - My named query has an error:
<query name="testeCQuery"><![CDATA[
from
class br.com.ag2.casarural.vo.Cidade as cidade where cidade.idCidade = :cidadeId
]]></query>
Conclusion:
For my method work correctly, I made this:
Code:
<query name="testeCQuery"><![CDATA[
from br.com.ag2.casarural.vo.Cidade as cidade where cidade.idCidade = :idCidade
]]></query>
Code:
getHibernateTemplate().findByNamedQueryAndNamedParam("testeCQuery", "idCidade", cidade);
It is all!