18 package org.turro.financials.register;
20 import java.util.List;
21 import org.turro.financials.entity.RegisterEntry;
22 import org.turro.jpa.Dao;
23 import org.turro.util.PhraseBuilder;
33 List l = dao.getResultList(
34 "select register.id from RegisterEntry " +
35 "group by register.id having round(sum(debit)*100,0) <> round(sum(credit)*100,0)"
37 return (List<RegisterEntry>) dao.getResultList(
38 "select distinct entry " +
39 "from RegisterEntry as entry " +
40 "join entry.register register " +
41 "where register.id in " +
45 private String getInValue(List l) {
46 PhraseBuilder pb =
new PhraseBuilder();
51 pb.addPendingSeparator(
",");
55 if(pb.toString().equals(
"()")) {
List< RegisterEntry > getEntries(Dao dao)