added
target
This commit is contained in:
parent
f321bef782
commit
fbf2bdc93e
|
@ -12,6 +12,7 @@ import com.loafle.overflow.db.api.DBOutput;
|
||||||
import com.loafle.overflow.email.dao.JPAEmailAuthDAO;
|
import com.loafle.overflow.email.dao.JPAEmailAuthDAO;
|
||||||
import com.loafle.overflow.member.dao.JPAMemberDAO;
|
import com.loafle.overflow.member.dao.JPAMemberDAO;
|
||||||
import com.loafle.overflow.noauthagent.dao.JPANoAuthAgentDAO;
|
import com.loafle.overflow.noauthagent.dao.JPANoAuthAgentDAO;
|
||||||
|
import com.loafle.overflow.target.dao.JPATargetDao;
|
||||||
import io.grpc.ServerBuilder;
|
import io.grpc.ServerBuilder;
|
||||||
import org.codehaus.jackson.map.ObjectMapper;
|
import org.codehaus.jackson.map.ObjectMapper;
|
||||||
|
|
||||||
|
@ -48,6 +49,7 @@ public class DBProxy {
|
||||||
daoMap.put("noauthAgent", jpaNoAuthAgentDAO);
|
daoMap.put("noauthAgent", jpaNoAuthAgentDAO);
|
||||||
daoMap.put("apiKey", jpaApiKeyDao);
|
daoMap.put("apiKey", jpaApiKeyDao);
|
||||||
daoMap.put("emailAuth", emailAuthDAO);
|
daoMap.put("emailAuth", emailAuthDAO);
|
||||||
|
daoMap.put("target", new JPATargetDao());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void start(int port) throws IOException {
|
public void start(int port) throws IOException {
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
<class>com.loafle.overflow.apikey.model.Apikey</class>
|
<class>com.loafle.overflow.apikey.model.Apikey</class>
|
||||||
<class>com.loafle.overflow.agent.model.Agent</class>
|
<class>com.loafle.overflow.agent.model.Agent</class>
|
||||||
<class>com.loafle.overflow.email.model.EmailAuth</class>
|
<class>com.loafle.overflow.email.model.EmailAuth</class>
|
||||||
|
<class>com.loafle.overflow.target.model.Target</class>
|
||||||
<properties>
|
<properties>
|
||||||
<property name="javax.persistence.jdbc.url" value="jdbc:postgresql://192.168.1.106:5432/postgres" />
|
<property name="javax.persistence.jdbc.url" value="jdbc:postgresql://192.168.1.106:5432/postgres" />
|
||||||
<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
|
<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user