It's my first time trying this, but I'm getting the following error:
The result set is closed
while trying to use ScrollableResults
.
@Override
public void associarTodosConteudos(LoteTransferenciaTO lotetransferencia, UsuarioDepartamentoTO udLogado, Long idDepartamento, Long idUsuario) {
// Lista os objetos controlados fluxo
ScrollableResults objetos = this.persistencia.listarConteudosSR(idDepartamento, idUsuario);
while (objetos.next()) {
ContentTO content = (ContentTO) objetos.get(0);
this.negocioVinculoLote.adicionarNoLoteTransferencia(lotetransferencia, content, udLogado);
}
}