Skip to content

about <table> schema attribute #1253

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
ndsun opened this issue Oct 23, 2024 · 2 comments
Closed

about <table> schema attribute #1253

ndsun opened this issue Oct 23, 2024 · 2 comments

Comments

@ndsun
Copy link

ndsun commented Oct 23, 2024

I hava a question.When I use MBG to generator mapper.xml from a table, I should add schema attribute to avoid to scan other schemas. But I hope there is not schema prefix to the table name in the result xml file, how can I do? Fox example,my schema is RMS and table name is STUDENT, then in the result mapper file, the sql is like this : insert into RMS.STUDENT...,but I hope the sql is insert into STUDENT, without schema prefix.Hope your answer, thank you!

@jeffgbutler
Copy link
Member

There's a property for this. See the documentation here: https://mybatis.org/generator/configreference/table.html

<table ... >
  <property name="ignoreQualifiersAtRuntime" value="true" />
</table>

@ndsun
Copy link
Author

ndsun commented Oct 24, 2024

There's a property for this. See the documentation here: https://mybatis.org/generator/configreference/table.html

<table ... >
  <property name="ignoreQualifiersAtRuntime" value="true" />
</table>

Got it, thank you very much!

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

2 participants