criteria.addEqualTo("costCenterExtraWorkKey", costCenterId); criteria.addEqualTo("costCenterMoneyKey", costCenterMoneyId);
criteria.addEqualTo("keyCostCenterExtraWork", costCenterId); criteria.addEqualTo("keyCostCenterMoney", costCenterMoneyId);
    public List readExtraWorkRequestBetweenDaysAndByCC(Date beginDay, Date lastDay, Integer costCenterId, Integer costCenterMoneyId) throws Exception {        Criteria criteria = new Criteria();        criteria.addBetween("beginDate", beginDay, lastDay);        criteria.addBetween("endDate", beginDay, lastDay);        criteria.addEqualTo("costCenterExtraWorkKey", costCenterId);        criteria.addEqualTo("costCenterMoneyKey", costCenterMoneyId);                        return queryList(ExtraWorkRequests.class, criteria);    }