• R/O
  • SSH
  • HTTPS

dbdiffreport: Commit


Commit MetaInfo

Revision354 (tree)
Zeit2022-04-22 13:26:16
Autort0145jp

Log Message

(empty log message)

Ändern Zusammenfassung

Diff

--- trunk/xxxMyBatis/generatorConfig_hirdb.xml (nonexistent)
+++ trunk/xxxMyBatis/generatorConfig_hirdb.xml (revision 354)
@@ -0,0 +1,29 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
3+<generatorConfiguration>
4+ <context id="context1" targetRuntime="MyBatis3">
5+ <plugin type="org.mybatis.generator.plugins.SerializablePlugin" />
6+ <plugin type="org.mybatis.generator.plugins.ToStringPlugin" />
7+
8+ <commentGenerator>
9+ <property name="suppressAllComments" value="true" />
10+ </commentGenerator>
11+ <jdbcConnection
12+ driverClass="JP.co.Hitachi.soft.HiRDB.JDBC.HiRDBDriver"
13+ connectionURL="jdbc:hitachi:hirdb://DBID=22200,DBHOST=localhost"
14+ userId="USER1" password="USER1" />
15+
16+ <javaModelGenerator targetPackage="test.hirdb"
17+ targetProject="xxxMyBatis">
18+ <property name="trimStrings" value="true" />
19+ </javaModelGenerator>
20+ <sqlMapGenerator targetPackage="test.hirdb"
21+ targetProject="xxxMyBatis" />
22+ <javaClientGenerator targetPackage="test.hirdb"
23+ targetProject="xxxMyBatis" type="ANNOTATEDMAPPER" />
24+
25+ <table schema="USER1" tableName="%">
26+ <property name="ignoreQualifiersAtRuntime" value="true" />
27+ </table>
28+ </context>
29+</generatorConfiguration>
\ No newline at end of file
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- trunk/xxxMyBatis/generatorConfig_oracle.xml (revision 353)
+++ trunk/xxxMyBatis/generatorConfig_oracle.xml (revision 354)
@@ -13,6 +13,7 @@
1313 <jdbcConnection driverClass="oracle.jdbc.OracleDriver"
1414 connectionURL="jdbc:oracle:thin:@localhost:1521:xe" userId="HR"
1515 password="HR" />
16+
1617 <javaModelGenerator targetPackage="test.oracle"
1718 targetProject="xxxMyBatis">
1819 <property name="trimStrings" value="true" />
@@ -21,6 +22,7 @@
2122 targetProject="xxxMyBatis" />
2223 <javaClientGenerator targetPackage="test.oracle"
2324 targetProject="xxxMyBatis" type="XMLMAPPER" />
25+
2426 <table schema="hr" tableName="%">
2527 <property name="ignoreQualifiersAtRuntime" value="true" />
2628 </table>
--- trunk/xxxMyBatis/generatorConfig_postgres.xml (nonexistent)
+++ trunk/xxxMyBatis/generatorConfig_postgres.xml (revision 354)
@@ -0,0 +1,28 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
3+<generatorConfiguration>
4+ <context id="context1" targetRuntime="MyBatis3">
5+ <plugin type="org.mybatis.generator.plugins.SerializablePlugin" />
6+ <plugin type="org.mybatis.generator.plugins.ToStringPlugin" />
7+
8+ <commentGenerator>
9+ <property name="suppressAllComments" value="true" />
10+ </commentGenerator>
11+ <jdbcConnection driverClass="org.postgresql.Driver"
12+ connectionURL="jdbc:postgresql://localhost/tourreserve"
13+ userId="postgres" password="P0stgres" />
14+
15+ <javaModelGenerator targetPackage="test.postgres"
16+ targetProject="xxxMyBatis">
17+ <property name="trimStrings" value="true" />
18+ </javaModelGenerator>
19+ <sqlMapGenerator targetPackage="test.postgres"
20+ targetProject="xxxMyBatis" />
21+ <javaClientGenerator targetPackage="test.postgres"
22+ targetProject="xxxMyBatis" type="ANNOTATEDMAPPER" />
23+
24+ <table schema="public" tableName="%">
25+ <property name="ignoreQualifiersAtRuntime" value="true" />
26+ </table>
27+ </context>
28+</generatorConfiguration>
\ No newline at end of file
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- trunk/xxxMyBatis/src/mybatis-config_hirdb.xml (nonexistent)
+++ trunk/xxxMyBatis/src/mybatis-config_hirdb.xml (revision 354)
@@ -0,0 +1,21 @@
1+<?xml version="1.0" encoding="UTF-8" ?>
2+<!DOCTYPE configuration
3+ PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
4+ "http://mybatis.org/dtd/mybatis-3-config.dtd">
5+<configuration>
6+ <environments default="development">
7+ <environment id="development">
8+ <transactionManager type="JDBC" />
9+ <dataSource type="POOLED">
10+ <property name="driver" value="JP.co.Hitachi.soft.HiRDB.JDBC.HiRDBDriver" />
11+ <property name="url"
12+ value="jdbc:hitachi:hirdb://DBID=22200,DBHOST=localhost" />
13+ <property name="username" value="USER1" />
14+ <property name="password" value="USER1" />
15+ </dataSource>
16+ </environment>
17+ </environments>
18+ <mappers>
19+ <package name="test.hirdb"/>
20+ </mappers>
21+</configuration>
\ No newline at end of file
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- trunk/xxxMyBatis/src/mybatis-config_postgres.xml (nonexistent)
+++ trunk/xxxMyBatis/src/mybatis-config_postgres.xml (revision 354)
@@ -0,0 +1,23 @@
1+<?xml version="1.0" encoding="UTF-8" ?>
2+<!DOCTYPE configuration
3+ PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
4+ "http://mybatis.org/dtd/mybatis-3-config.dtd">
5+<configuration>
6+ <environments default="development">
7+ <environment id="development">
8+ <transactionManager type="JDBC" />
9+ <dataSource type="POOLED">
10+ <property name="driver" value="org.postgresql.Driver" />
11+ <property name="url"
12+ value="jdbc:postgresql://localhost/tourreserve" />
13+ <property name="username" value="postgres" />
14+ <property name="password" value="P0stgres" />
15+ </dataSource>
16+ </environment>
17+ </environments>
18+ <mappers>
19+ <!-- <mapper resource="test/mybatis/generator/sqlmap/CountriesMapper.xml"/>
20+ -->
21+ <package name="test.postgres"/>
22+ </mappers>
23+</configuration>
\ No newline at end of file
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- trunk/xxxMyBatis/src/test/TestHirdb.java (nonexistent)
+++ trunk/xxxMyBatis/src/test/TestHirdb.java (revision 354)
@@ -0,0 +1,31 @@
1+package test;
2+import java.io.InputStream;
3+import java.util.List;
4+
5+import org.apache.ibatis.io.Resources;
6+import org.apache.ibatis.session.SqlSession;
7+import org.apache.ibatis.session.SqlSessionFactory;
8+import org.apache.ibatis.session.SqlSessionFactoryBuilder;
9+
10+import test.hirdb.Newtable;
11+import test.hirdb.NewtableMapper;
12+
13+public class TestHirdb {
14+
15+ public static void main(String[] args) throws Exception {
16+ String resource = "mybatis-config_hirdb.xml";
17+ InputStream inputStream = Resources.getResourceAsStream(resource);
18+ SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
19+
20+ SqlSession sqlSession = sqlSessionFactory.openSession();
21+ try {
22+ NewtableMapper mapper = sqlSession.getMapper(NewtableMapper.class);
23+ List<Newtable> list = mapper.selectByExample(null);
24+ for (Newtable dto : list) {
25+ System.out.println(dto);
26+ }
27+ } finally {
28+ sqlSession.close();
29+ }
30+ }
31+}
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- trunk/xxxMyBatis/src/test/TestPostgres.java (nonexistent)
+++ trunk/xxxMyBatis/src/test/TestPostgres.java (revision 354)
@@ -0,0 +1,35 @@
1+package test;
2+
3+import java.io.InputStream;
4+import java.util.List;
5+
6+import org.apache.ibatis.io.Resources;
7+import org.apache.ibatis.session.SqlSession;
8+import org.apache.ibatis.session.SqlSessionFactory;
9+import org.apache.ibatis.session.SqlSessionFactoryBuilder;
10+
11+import test.postgres.Customer;
12+import test.postgres.CustomerExample;
13+import test.postgres.CustomerMapper;
14+
15+public class TestPostgres {
16+
17+ public static void main(String[] args) throws Exception {
18+ String resource = "mybatis-config_postgres.xml";
19+ InputStream inputStream = Resources.getResourceAsStream(resource);
20+ SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
21+
22+ SqlSession sqlSession = sqlSessionFactory.openSession();
23+ try {
24+ CustomerMapper mapper = sqlSession.getMapper(CustomerMapper.class);
25+ CustomerExample e = new CustomerExample();
26+ e.createCriteria().andCustomerPostEqualTo("135-8671");
27+ List<Customer> list = mapper.selectByExample(e);
28+ for (Customer dto : list) {
29+ System.out.println(dto);
30+ }
31+ } finally {
32+ sqlSession.close();
33+ }
34+ }
35+}
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Show on old repository browser