-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: template in generator configuration #973
Comments
for the xml dtd part, I think it will be easy to define a table template element which can have exact child elements of table element. |
@jeffgbutler can you give me a hint which java class to work on, I want to contribute on this one . |
@WestFarmer I think this is a good idea. However, I suggest implementing it a bit differently because it might be difficult to lookup the <tableSet>
<table tableName="foo"/>
<table tableName="bar"/>
<columnOverride column="IU" property="inputUser"/>
<columnOverride column="IO" property="inputOrg"/>
<columnOverride column="IT" property="inputTime"/>
<columnOverride column="UU" property="updateUser"/>
<columnOverride column="UO" property="updateOrg"/>
<columnOverride column="UT" property="updateTime"/>
</tableSet> What do you think of this idea? The configuration parser is here: https://github.com/mybatis/generator/blob/master/core/mybatis-generator-core/src/main/java/org/mybatis/generator/config/xml/MyBatisGeneratorConfigurationParser.java |
I think it's ok, will work on this. |
for example I have many table share same config like below:
can we define a template like this:
then reference it like this:
The text was updated successfully, but these errors were encountered: