Skip to content

Instantly share code, notes, and snippets.

@wendal
Created April 12, 2012 05:15
Show Gist options
  • Save wendal/2364746 to your computer and use it in GitHub Desktop.
Save wendal/2364746 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")) //改成你自己的package!!
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