criteria.addEqualTo("costCenterKey", costCenter.getIdInternal());
criteria.addEqualTo("keyCostCenter", costCenter.getIdInternal());
    public MoneyCostCenter readByCostCenterAndYear(CostCenter costCenter, Integer year)            throws ExcepcaoPersistencia {        Criteria criteria = new Criteria();        criteria.addEqualTo("costCenterKey", costCenter.getIdInternal());        criteria.addEqualTo("year", year);        return (MoneyCostCenter) queryObject(MoneyCostCenter.class, criteria);    }