

package com.khartec.waltz.jobs.harness;

import com.khartec.waltz.data.rating_scheme.RatingSchemeDAO;
import com.khartec.waltz.model.rating.RatingSchemeItemUsageCount;
import com.khartec.waltz.service.DIConfiguration;
import org.jooq.tools.json.ParseException;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;


public class RatingSchemeHarness {

    public static void main(String[] args) throws ParseException {

        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);

        RatingSchemeDAO dao = ctx.getBean(RatingSchemeDAO.class);
        List<RatingSchemeItemUsageCount> stats = dao.calcRatingUsageStats();
        System.out.println(stats);
    }

}
