Search in sources :

Example 1 with PhysicalSpecificationSearchDao

use of com.khartec.waltz.data.physical_specification.search.PhysicalSpecificationSearchDao in project waltz by khartec.

the class PhysicalSpecificationHarness method main.

public static void main(String[] args) throws ParseException {
    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
    DSLContext dsl = ctx.getBean(DSLContext.class);
    PhysicalSpecificationSearchDao searcher = ctx.getBean(PhysicalSpecificationSearchDao.class);
    searcher.search("sap", EntitySearchOptions.mkForEntity(EntityKind.PHYSICAL_SPECIFICATION)).forEach(ps -> System.out.println(ps.name()));
}
Also used : AnnotationConfigApplicationContext(org.springframework.context.annotation.AnnotationConfigApplicationContext) PhysicalSpecificationSearchDao(com.khartec.waltz.data.physical_specification.search.PhysicalSpecificationSearchDao) DSLContext(org.jooq.DSLContext)

Aggregations

PhysicalSpecificationSearchDao (com.khartec.waltz.data.physical_specification.search.PhysicalSpecificationSearchDao)1 DSLContext (org.jooq.DSLContext)1 AnnotationConfigApplicationContext (org.springframework.context.annotation.AnnotationConfigApplicationContext)1