package com.jiuqi.njt.service;
import com.j256.ormlite.android.apptools.OrmLiteConfigUtil;
import com.jiuqi.njt.register.KAdminAreaBean;
import com.jiuqi.njt.register.KNoticeNewsBean;
import com.jiuqi.njt.register.city.CityBean;
/**
* 数据库配置工具类 (根据下方资源对象的定义创建客户端数据库表结构)
*
* @author joe
*
*/
public class DatabaseConfigUtil extends OrmLiteConfigUtil {
public static Class<?>[] getMainDbEntityClasses() {
return new Class<?>[] {
CityBean.class,KAdminAreaBean.class,KNoticeNewsBean.class
};
}
public static void main(String[] args) throws Exception {
System.out.println();
writeConfigFile("maindb_config.txt",DatabaseConfigUtil.getMainDbEntityClasses());
}
}