Skip to content
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

刚刚开始学习本项目,单表的查询通过mbg生成,多表的查询怎么自动生成? #512

Closed
lk101 opened this issue Nov 15, 2021 · 8 comments

Comments

@lk101
Copy link

lk101 commented Nov 15, 2021

我注意到,mbg项目中将所有表的基本单表查询和更新通过mybatis generator工具实现了自动生成

除此之外,我还发现在admin项目中,src/main/resources/dao目录下还有一些手写的SQL,这些SQL对应的Java Dao和Dto类也是通过自动化工具自动生成的吗?

如果是,自动化生成的相关配置是否在项目中有所体现?

谢谢!

@lk101
Copy link
Author

lk101 commented Nov 15, 2021

在mybatis官网上并未找到相关的自动生成方法和配置,是否是使用了其他工具?

@aaa7636602
Copy link

aaa7636602 commented Nov 30, 2021 via email

@macrozheng
Copy link
Owner

不是通过工具生成的,多表和复杂sql需要手写,src/main/resources/dao目录下的都是自定义sql。

@sunfei7777
Copy link

sunfei7777 commented Dec 8, 2021 via email

@zkchen
Copy link

zkchen commented Dec 8, 2021 via email

@516717906
Copy link

516717906 commented Dec 8, 2021 via email

@liaock
Copy link

liaock commented Dec 8, 2021 via email

@yufeng007
Copy link

yufeng007 commented Dec 8, 2021 via email

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

8 participants