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
-