Skip to content

Commit 1bce3cd

Browse files
author
Jeff Butler
committed
Update MBG DTD for release 1.3.4
1 parent 5317772 commit 1bce3cd

File tree

1 file changed

+49
-16
lines changed

1 file changed

+49
-16
lines changed

dtd/mybatis-generator-config_1_0.dtd

+49-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<!--
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
-->
163
4+
Copyright 2006-2016 the original author or authors.
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
18+
-->
1719
<!--
1820
This DTD defines the structure of the MyBatis generator configuration file.
1921
Configuration files should declare the DOCTYPE as follows:
@@ -25,7 +27,7 @@
2527
Please see the documentation included with MyBatis generator for details on each option
2628
in the DTD. You may also view documentation on-line here:
2729
28-
http://mybatis.org/docs/generator
30+
http://www.mybatis.org/generator/
2931
3032
-->
3133

@@ -48,13 +50,22 @@
4850
The context element is used to describe a context for generating files, and the source
4951
tables.
5052
-->
51-
<!ELEMENT context (property*, plugin*, commentGenerator?, jdbcConnection, javaTypeResolver?,
53+
<!ELEMENT context (property*, plugin*, commentGenerator?, (connectionFactory | jdbcConnection), javaTypeResolver?,
5254
javaModelGenerator, sqlMapGenerator?, javaClientGenerator?, table+)>
5355
<!ATTLIST context id ID #REQUIRED
5456
defaultModelType CDATA #IMPLIED
5557
targetRuntime CDATA #IMPLIED
5658
introspectedColumnImpl CDATA #IMPLIED>
5759

60+
<!--
61+
The connectionFactory element is used to describe the connection factory used
62+
for connecting to the database for introspection. Either connectionFacoty
63+
or jdbcConnection must be specified, but not both.
64+
-->
65+
<!ELEMENT connectionFactory (property*)>
66+
<!ATTLIST connectionFactory
67+
type CDATA #IMPLIED>
68+
5869
<!--
5970
The jdbcConnection element is used to describe the JDBC connection that the generator
6071
will use to introspect the database.
@@ -139,13 +150,15 @@
139150
The table element is used to specify a database table that will be the source information
140151
for a set of generated objects.
141152
-->
142-
<!ELEMENT table (property*, generatedKey?, columnRenamingRule?, (columnOverride | ignoreColumn)*) >
153+
<!ELEMENT table (property*, generatedKey?, columnRenamingRule?, (columnOverride | ignoreColumn | ignoreColumnsByRegex)*) >
143154
<!ATTLIST table
144155
catalog CDATA #IMPLIED
145156
schema CDATA #IMPLIED
146157
tableName CDATA #REQUIRED
147158
alias CDATA #IMPLIED
148159
domainObjectName CDATA #IMPLIED
160+
mapperName CDATA #IMPLIED
161+
sqlProviderName CDATA #IMPLIED
149162
enableInsert CDATA #IMPLIED
150163
enableSelectByPrimaryKey CDATA #IMPLIED
151164
enableSelectByExample CDATA #IMPLIED
@@ -172,6 +185,7 @@
172185
javaType CDATA #IMPLIED
173186
jdbcType CDATA #IMPLIED
174187
typeHandler CDATA #IMPLIED
188+
isGeneratedAlways CDATA #IMPLIED
175189
delimitedColumnName CDATA #IMPLIED>
176190

177191
<!--
@@ -184,6 +198,25 @@
184198
column CDATA #REQUIRED
185199
delimitedColumnName CDATA #IMPLIED>
186200

201+
<!--
202+
The ignoreColumnsByRegex element is used to identify a column pattern that should be ignored.
203+
No generated SQL will refer to the column, and no property will be generated
204+
for the column in the model objects.
205+
-->
206+
<!ELEMENT ignoreColumnsByRegex (except*)>
207+
<!ATTLIST ignoreColumnsByRegex
208+
pattern CDATA #REQUIRED>
209+
210+
<!--
211+
The except element is used to identify an exception to the ignoreColumnsByRegex rule.
212+
If a column matches the regex rule, but also matches the exception, then the
213+
column will be included in the generated objects.
214+
-->
215+
<!ELEMENT except EMPTY>
216+
<!ATTLIST except
217+
column CDATA #REQUIRED
218+
delimitedColumnName CDATA #IMPLIED>
219+
187220
<!--
188221
The generatedKey element is used to identify a column in the table whose value
189222
is calculated - either from a sequence (or some other query), or as an identity column.

0 commit comments

Comments
 (0)