-
-
Save weirhp/2971187 to your computer and use it in GitHub Desktop.
nutz 为所有实体类建好全部表
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dao dao = ioc.get(Dao.class); | |
for (Class<?> klass : Scans.me().scanPackage("net.wendal.tb.bean")) | |
if (klass.getAnnotation(Table.class) != null) | |
dao.create(klass, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment