利用hibernate配置文件成映射数据库表

public class AutoCreateTable {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Configuration cfg = new Configuration().configure();
		SchemaExport sce =  new SchemaExport(cfg);
		sce.create(true, true);
	}

}

猜你喜欢

转载自linlargy.iteye.com/blog/1847899
今日推荐