crawler jpa added

This commit is contained in:
geek 2017-06-08 19:21:22 +09:00
parent 8fe158238d
commit 55b08dfdc8

View File

@ -6,6 +6,9 @@ package com.loafle.overflow.proxy.db;
import com.loafle.overflow.agent.dao.JPAAgentDAO; import com.loafle.overflow.agent.dao.JPAAgentDAO;
import com.loafle.overflow.apikey.dao.JPAApiKeyDao; import com.loafle.overflow.apikey.dao.JPAApiKeyDao;
import com.loafle.overflow.commons.dao.JPABaseDAO; import com.loafle.overflow.commons.dao.JPABaseDAO;
import com.loafle.overflow.crawler.dao.JPACrawlerDAO;
import com.loafle.overflow.crawler.dao.JPACrawlerInputItemDAO;
import com.loafle.overflow.crawler.dao.JPACrawlerInputItemMappingDAO;
import com.loafle.overflow.db.api.DBGrpc; import com.loafle.overflow.db.api.DBGrpc;
import com.loafle.overflow.db.api.DBInput; import com.loafle.overflow.db.api.DBInput;
import com.loafle.overflow.db.api.DBOutput; import com.loafle.overflow.db.api.DBOutput;
@ -50,6 +53,9 @@ public class DBProxy {
daoMap.put("apiKey", jpaApiKeyDao); daoMap.put("apiKey", jpaApiKeyDao);
daoMap.put("emailAuth", emailAuthDAO); daoMap.put("emailAuth", emailAuthDAO);
daoMap.put("target", new JPATargetDao()); daoMap.put("target", new JPATargetDao());
daoMap.put("crawler", new JPACrawlerDAO());
daoMap.put("crawlerInputItem", new JPACrawlerInputItemDAO());
daoMap.put("crawlerInputItemMapping", new JPACrawlerInputItemMappingDAO());
} }
public void start(int port) throws IOException { public void start(int port) throws IOException {