use of org.finos.waltz.data.entity_relationship.EntityRelationshipDao in project waltz by khartec.
the class EntityRelationshipHarness method main.
public static void main(String[] args) {
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
DSLContext dsl = ctx.getBean(DSLContext.class);
EntityRelationshipDao dao = ctx.getBean(EntityRelationshipDao.class);
EntityReference ref = EntityReference.mkRef(EntityKind.MEASURABLE, 613);
Collection<EntityRelationship> rels = dao.findRelationshipsInvolving(ref);
rels.forEach(r -> System.out.println(r.a().name()));
System.out.println("----");
System.out.println(dao.tallyRelationshipsInvolving(ref));
}
Aggregations