HQL和scrollableResults

时间:2018-09-06 07:03:39

标签: java hql scrollableresults

我需要检查从滚动条中检索到的当前值是否与下一个值-1

 while (sequenceNumbers.next()){
                if(sequenceNumbers.get(0).equals("")){

                }

            }

要检索的HQL查询

StringBuilder queryBuilder = new StringBuilder(" SELECT SUBSTRING(referenceComptable , 8, 14) AS seqNum, SUBSTRING(referenceComptable, 4,7) AS dateCegid, SUBSTRING(referenceComptable, 1,3) AS journal")
                            .append(" FROM EtapeJudiciaireLnkFactureActesHonoraires ")
                            .append(" WHERE dateCegidGenerated BETWEEN :date AND :dateYearIntervalDate ")
                            .append(" GROUP BY journal ")
                            .append(" ORDER BY seqNum ");

0 个答案:

没有答案