Search in sources :

Example 1 with UserAgentInfoDao

use of org.finos.waltz.data.user_agent_info.UserAgentInfoDao in project waltz by khartec.

the class UserAgentInfoHarness method main.

public static void main(String[] args) {
    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
    UserAgentInfoDao userLoginDao = ctx.getBean(UserAgentInfoDao.class);
    DSLContext dsl = ctx.getBean(DSLContext.class);
    List<UserAgentInfo> infos = userLoginDao.findLoginsForUser("admin", 10);
    System.out.println(infos);
    userLoginDao.save(infos.get(0));
}
Also used : AnnotationConfigApplicationContext(org.springframework.context.annotation.AnnotationConfigApplicationContext) UserAgentInfoDao(org.finos.waltz.data.user_agent_info.UserAgentInfoDao) DSLContext(org.jooq.DSLContext) UserAgentInfo(org.finos.waltz.model.user_agent_info.UserAgentInfo)

Aggregations

UserAgentInfoDao (org.finos.waltz.data.user_agent_info.UserAgentInfoDao)1 UserAgentInfo (org.finos.waltz.model.user_agent_info.UserAgentInfo)1 DSLContext (org.jooq.DSLContext)1 AnnotationConfigApplicationContext (org.springframework.context.annotation.AnnotationConfigApplicationContext)1