1.0.0-RELEASE

This commit is contained in:
insanity 2017-05-29 19:27:15 +09:00
parent f60517bbe9
commit 98ebc21b0a
3 changed files with 11 additions and 1 deletions

View File

@ -69,6 +69,12 @@
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.loafle</groupId>
<artifactId>overflow_jpa_agent_dao</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>

View File

@ -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 {

View File

@ -4,12 +4,12 @@
<persistence-unit name="overflow">
<class>com.loafle.overflow.member.model.Member</class>
<class>com.loafle.overflow.agent.model.Agent</class>
<properties>
<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.user" value="vertx" />
<property name="javax.persistence.jdbc.password" value="qwe123" />
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
<!--<property name="hibernate.hbm2ddl.auto" value="create"/>-->
<property name="hibernate.show_sql" value="true" />
</properties>