Galera que saca de HQL, queria saber se a instruções abaixo foram escritas corretamente porque ao rodar o projeto apresenta
erros citados no final. Se alguem puder me ajudar eu agradeço muitissimo.
List lista = gerPersist.find(“from " + Financeiro.class.getName() +
" as f where f.idCtl=” + idCtlSel + filtro +
" and f.codigoUf=’" + uf + “’ AND f.contratado >’”+sum+"’ order by f.contratado", 50);
for (int i = 0; i < lista.size(); i++) { //DÁ ERRO NESTA LINHA
…
}
List lista = gerPersist.find(“from " + Financeiro.class.getName() +
" as f where f.idCtl=” + idCtlSel + filtro +
" and f.codigoUf=’" + uf + “’ AND f.contratado <=’”+sum+"’ order by f.contratado", 50);
for (int i = 0; i < lista.size(); i++) { //DÁ ERRO NESTA LINHA
ERROS MOSTRADOS AO EXECUTAR:
java.lang.NullPointerException
at java.lang.Thread.run(Unknown Source)
org.hibernate.exception.SQLGrammarException: could not execute query –
[quote=bean]Galera que saca de HQL, queria saber se a instruções abaixo foram escritas corretamente porque ao rodar o projeto apresenta
erros citados no final. Se alguem puder me ajudar eu agradeço muitissimo.
List lista = gerPersist.find(“from " + Financeiro.class.getName() +
" as f where f.idCtl=” + idCtlSel + filtro +
" and f.codigoUf=’" + uf + “’ AND f.contratado >’”+sum+"’ order by f.contratado", 50);
for (int i = 0; i < lista.size(); i++) { //DÁ ERRO NESTA LINHA
…
}
List lista = gerPersist.find(“from " + Financeiro.class.getName() +
" as f where f.idCtl=” + idCtlSel + filtro +
" and f.codigoUf=’" + uf + “’ AND f.contratado <=’”+sum+"’ order by f.contratado", 50);
for (int i = 0; i < lista.size(); i++) { //DÁ ERRO NESTA LINHA
ERROS MOSTRADOS AO EXECUTAR:
java.lang.NullPointerException
at java.lang.Thread.run(Unknown Source)
org.hibernate.exception.SQLGrammarException: could not execute query --[/quote]