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

想请教一个generator的问题,望解答 #37

Closed
sevenleave opened this issue Jul 14, 2018 · 0 comments
Closed

想请教一个generator的问题,望解答 #37

sevenleave opened this issue Jul 14, 2018 · 0 comments

Comments

@sevenleave
Copy link

你好,想冒昧请教一个问题,还望赐教!
在使用mybatis的generator插件时,生成model/mapper/dao时,在配置文件中都会设置一个targetPackage属性来指明包。
但是这样的结果就是所有的model或mapper或dao都在同一个包下,而我想要让每一个数据表所对应的model都在其独有的包下。
例如,假设我的数据库有admin和article这2张表,我想让generator生成的实体类Admin和Article分别在blog.admin.modelblog.article.model下,如下图所示,请问有解决的办法吗?
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