From 98ebc21b0a43b303f7548c22aa2618b9caaeeb6a Mon Sep 17 00:00:00 2001 From: insanity Date: Mon, 29 May 2017 19:27:15 +0900 Subject: [PATCH] 1.0.0-RELEASE --- pom.xml | 6 ++++++ src/main/java/com/loafle/overflow/proxy/db/DBProxy.java | 4 ++++ src/main/resources/META-INF/persistence.xml | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index aaff4cf..ec81ed6 100644 --- a/pom.xml +++ b/pom.xml @@ -69,6 +69,12 @@ 1.0.0-SNAPSHOT + + com.loafle + overflow_jpa_agent_dao + 1.0.0-SNAPSHOT + + diff --git a/src/main/java/com/loafle/overflow/proxy/db/DBProxy.java b/src/main/java/com/loafle/overflow/proxy/db/DBProxy.java index f4cf667..aa8369b 100644 --- a/src/main/java/com/loafle/overflow/proxy/db/DBProxy.java +++ b/src/main/java/com/loafle/overflow/proxy/db/DBProxy.java @@ -1,6 +1,7 @@ package com.loafle.overflow.proxy.db; +import com.loafle.overflow.agent.dao.JPAAgentDAO; import com.loafle.overflow.commons.dao.JPABaseDAO; import com.loafle.overflow.db.api.DBGrpc; import com.loafle.overflow.db.api.DBInput; @@ -32,7 +33,10 @@ public class DBProxy { public DBProxy() { daoMap = new ConcurrentHashMap(); JPAMemberDAO memberDao = new JPAMemberDAO(); + JPAAgentDAO agentDao = new JPAAgentDAO(); + daoMap.put("member", memberDao); + daoMap.put("agent", agentDao); } public void start(int port) throws IOException { diff --git a/src/main/resources/META-INF/persistence.xml b/src/main/resources/META-INF/persistence.xml index 9d060aa..760ae4a 100644 --- a/src/main/resources/META-INF/persistence.xml +++ b/src/main/resources/META-INF/persistence.xml @@ -4,12 +4,12 @@ com.loafle.overflow.member.model.Member + com.loafle.overflow.agent.model.Agent -