Search in sources :

Example 1 with PersonKind

use of org.finos.waltz.model.person.PersonKind in project waltz by khartec.

the class PersonHarness method main.

public static void main(String[] args) {
    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
    DSLContext dsl = ctx.getBean(DSLContext.class);
    PersonDao personDao = ctx.getBean(PersonDao.class);
    Map<PersonKind, Integer> count = personDao.countAllUnderlingsByKind("wibble");
    System.out.printf("count: %s\n", count);
}
Also used : PersonDao(org.finos.waltz.data.person.PersonDao) AnnotationConfigApplicationContext(org.springframework.context.annotation.AnnotationConfigApplicationContext) PersonKind(org.finos.waltz.model.person.PersonKind) DSLContext(org.jooq.DSLContext)

Aggregations

PersonDao (org.finos.waltz.data.person.PersonDao)1 PersonKind (org.finos.waltz.model.person.PersonKind)1 DSLContext (org.jooq.DSLContext)1 AnnotationConfigApplicationContext (org.springframework.context.annotation.AnnotationConfigApplicationContext)1