|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | - |
3 | 2 | <!-- |
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 | | ---> |
16 | 3 |
|
| 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 | +--> |
17 | 19 | <!-- |
18 | 20 | This DTD defines the structure of the MyBatis generator configuration file. |
19 | 21 | Configuration files should declare the DOCTYPE as follows: |
|
25 | 27 | Please see the documentation included with MyBatis generator for details on each option |
26 | 28 | in the DTD. You may also view documentation on-line here: |
27 | 29 | |
28 | | - http://mybatis.org/docs/generator |
| 30 | + http://www.mybatis.org/generator/ |
29 | 31 | |
30 | 32 | --> |
31 | 33 |
|
|
48 | 50 | The context element is used to describe a context for generating files, and the source |
49 | 51 | tables. |
50 | 52 | --> |
51 | | -<!ELEMENT context (property*, plugin*, commentGenerator?, jdbcConnection, javaTypeResolver?, |
| 53 | +<!ELEMENT context (property*, plugin*, commentGenerator?, (connectionFactory | jdbcConnection), javaTypeResolver?, |
52 | 54 | javaModelGenerator, sqlMapGenerator?, javaClientGenerator?, table+)> |
53 | 55 | <!ATTLIST context id ID #REQUIRED |
54 | 56 | defaultModelType CDATA #IMPLIED |
55 | 57 | targetRuntime CDATA #IMPLIED |
56 | 58 | introspectedColumnImpl CDATA #IMPLIED> |
57 | 59 |
|
| 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 | + |
58 | 69 | <!-- |
59 | 70 | The jdbcConnection element is used to describe the JDBC connection that the generator |
60 | 71 | will use to introspect the database. |
|
139 | 150 | The table element is used to specify a database table that will be the source information |
140 | 151 | for a set of generated objects. |
141 | 152 | --> |
142 | | -<!ELEMENT table (property*, generatedKey?, columnRenamingRule?, (columnOverride | ignoreColumn)*) > |
| 153 | +<!ELEMENT table (property*, generatedKey?, columnRenamingRule?, (columnOverride | ignoreColumn | ignoreColumnsByRegex)*) > |
143 | 154 | <!ATTLIST table |
144 | 155 | catalog CDATA #IMPLIED |
145 | 156 | schema CDATA #IMPLIED |
146 | 157 | tableName CDATA #REQUIRED |
147 | 158 | alias CDATA #IMPLIED |
148 | 159 | domainObjectName CDATA #IMPLIED |
| 160 | + mapperName CDATA #IMPLIED |
| 161 | + sqlProviderName CDATA #IMPLIED |
149 | 162 | enableInsert CDATA #IMPLIED |
150 | 163 | enableSelectByPrimaryKey CDATA #IMPLIED |
151 | 164 | enableSelectByExample CDATA #IMPLIED |
|
172 | 185 | javaType CDATA #IMPLIED |
173 | 186 | jdbcType CDATA #IMPLIED |
174 | 187 | typeHandler CDATA #IMPLIED |
| 188 | + isGeneratedAlways CDATA #IMPLIED |
175 | 189 | delimitedColumnName CDATA #IMPLIED> |
176 | 190 |
|
177 | 191 | <!-- |
|
184 | 198 | column CDATA #REQUIRED |
185 | 199 | delimitedColumnName CDATA #IMPLIED> |
186 | 200 |
|
| 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 | + |
187 | 220 | <!-- |
188 | 221 | The generatedKey element is used to identify a column in the table whose value |
189 | 222 | is calculated - either from a sequence (or some other query), or as an identity column. |
|
0 commit comments