Skip to content

Instantly share code, notes, and snippets.

@weirhp
Forked from wendal/gist:2364746
Created June 22, 2012 07:57
Show Gist options
  • Save weirhp/2971187 to your computer and use it in GitHub Desktop.
Save weirhp/2971187 to your computer and use it in GitHub Desktop.
nutz 为所有实体类建好全部表
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