Skip to content

How to disable the generation of public enum Column in MyBatis Generator? #1261

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

Closed
fit2-zhao opened this issue Nov 18, 2024 · 0 comments
Closed

Comments

@fit2-zhao
Copy link

Hello,

I am using MyBatis Generator (MBG) for code generation, but I would like to disable the generated public enum Column class. This class is typically used to represent the column names of a database table, but I do not need this feature and would like to skip generating this enum.

Is there any configuration or method to disable the generation of the Column enum?

I have already tried the following, but with no success:

Modified the relevant configurations in generatorConfig.xml (such as useActualColumnNames).
Attempted to customize templates.
If there is a more effective way to disable this functionality or if you can provide relevant documentation or examples, I would greatly appreciate your help!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant