• R/O
  • SSH
  • HTTPS

dbdiffreport: Commit


Commit MetaInfo

Revision363 (tree)
Zeit2022-06-25 23:05:35
Autort0145jp

Log Message

(empty log message)

Ändern Zusammenfassung

Diff

--- trunk/mybatisPlugins/.settings/org.eclipse.wst.common.project.facet.core.xml (nonexistent)
+++ trunk/mybatisPlugins/.settings/org.eclipse.wst.common.project.facet.core.xml (revision 363)
@@ -0,0 +1,4 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<faceted-project>
3+ <installed facet="java" version="1.8"/>
4+</faceted-project>
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- trunk/mybatisPlugins/src/WithoutLockPlugin.java (nonexistent)
+++ trunk/mybatisPlugins/src/WithoutLockPlugin.java (revision 363)
@@ -0,0 +1,53 @@
1+
2+
3+import java.util.List;
4+
5+import org.mybatis.generator.api.IntrospectedTable;
6+import org.mybatis.generator.api.PluginAdapter;
7+import org.mybatis.generator.api.dom.xml.TextElement;
8+import org.mybatis.generator.api.dom.xml.XmlElement;
9+
10+public class WithoutLockPlugin extends PluginAdapter {
11+
12+ private final TextElement WITHOUT_LOCK = new TextElement("WITHOUT LOCK NOWAIT");
13+
14+ @Override
15+ public boolean validate(List<String> warnings) {
16+ return true;
17+ }
18+
19+ @Override
20+ public boolean sqlMapSelectByPrimaryKeyElementGenerated(XmlElement element,
21+ IntrospectedTable introspectedTable) {
22+ element.addElement(WITHOUT_LOCK);
23+ return true;
24+ }
25+
26+ @Override
27+ public boolean sqlMapSelectAllElementGenerated(XmlElement element,
28+ IntrospectedTable introspectedTable) {
29+ element.addElement(WITHOUT_LOCK);
30+ return true;
31+ }
32+
33+ @Override
34+ public boolean sqlMapCountByExampleElementGenerated(XmlElement element,
35+ IntrospectedTable introspectedTable) {
36+ element.addElement(WITHOUT_LOCK);
37+ return true;
38+ }
39+
40+ @Override
41+ public boolean sqlMapSelectByExampleWithoutBLOBsElementGenerated(XmlElement element,
42+ IntrospectedTable introspectedTable) {
43+ element.addElement(WITHOUT_LOCK);
44+ return true;
45+ }
46+
47+ @Override
48+ public boolean sqlMapSelectByExampleWithBLOBsElementGenerated(XmlElement element,
49+ IntrospectedTable introspectedTable) {
50+ element.addElement(WITHOUT_LOCK);
51+ return true;
52+ }
53+}
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- trunk/mybatisPlugins/test.bat (nonexistent)
+++ trunk/mybatisPlugins/test.bat (revision 363)
@@ -0,0 +1,2 @@
1+java -cp org.mybatis.generator.core_1.4.1.jar;postgresql-42.4.0.jar;bin org.mybatis.generator.api.ShellRunner -configfile test.xml -overwrite
2+pause
--- trunk/mybatisPlugins/test.xml (nonexistent)
+++ trunk/mybatisPlugins/test.xml (revision 363)
@@ -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="WithoutLockPlugin" />
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/dvdrental"
13+ userId="postgres" password="postgres" />
14+ <javaModelGenerator targetPackage="test.postgres"
15+ targetProject="xxxMyBatis/mybatisgenerator">
16+ <property name="trimStrings" value="true" />
17+ <property name="constructorBased" value="true" />
18+ </javaModelGenerator>
19+ <sqlMapGenerator targetPackage="test.postgres"
20+ targetProject="xxxMyBatis/mybatisgenerator" />
21+ <javaClientGenerator targetPackage="test.postgres"
22+ targetProject="xxxMyBatis/mybatisgenerator" type="XMLMAPPER" />
23+
24+ <table schema="public" tableName="test%">
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
Show on old repository browser