1.0.0-RELEASE
This commit is contained in:
parent
f60517bbe9
commit
98ebc21b0a
6
pom.xml
6
pom.xml
|
@ -69,6 +69,12 @@
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.loafle</groupId>
|
||||||
|
<artifactId>overflow_jpa_agent_dao</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.loafle.overflow.proxy.db;
|
package com.loafle.overflow.proxy.db;
|
||||||
|
|
||||||
|
|
||||||
|
import com.loafle.overflow.agent.dao.JPAAgentDAO;
|
||||||
import com.loafle.overflow.commons.dao.JPABaseDAO;
|
import com.loafle.overflow.commons.dao.JPABaseDAO;
|
||||||
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;
|
||||||
|
@ -32,7 +33,10 @@ public class DBProxy {
|
||||||
public DBProxy() {
|
public DBProxy() {
|
||||||
daoMap = new ConcurrentHashMap();
|
daoMap = new ConcurrentHashMap();
|
||||||
JPAMemberDAO memberDao = new JPAMemberDAO();
|
JPAMemberDAO memberDao = new JPAMemberDAO();
|
||||||
|
JPAAgentDAO agentDao = new JPAAgentDAO();
|
||||||
|
|
||||||
daoMap.put("member", memberDao);
|
daoMap.put("member", memberDao);
|
||||||
|
daoMap.put("agent", agentDao);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void start(int port) throws IOException {
|
public void start(int port) throws IOException {
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
|
|
||||||
<persistence-unit name="overflow">
|
<persistence-unit name="overflow">
|
||||||
<class>com.loafle.overflow.member.model.Member</class>
|
<class>com.loafle.overflow.member.model.Member</class>
|
||||||
|
<class>com.loafle.overflow.agent.model.Agent</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" />
|
||||||
<property name="javax.persistence.jdbc.user" value="vertx" />
|
<property name="javax.persistence.jdbc.user" value="vertx" />
|
||||||
<property name="javax.persistence.jdbc.password" value="qwe123" />
|
<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.hbm2ddl.auto" value="create"/>-->
|
||||||
<property name="hibernate.show_sql" value="true" />
|
<property name="hibernate.show_sql" value="true" />
|
||||||
</properties>
|
</properties>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user