package com.test;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
public class test
{
public static void main(String[] args)
{
Configuration configuration =new Configuration().configure();
SchemaExport schemaExport=new SchemaExport(configuration);
schemaExport.create(true, true);
}
}
转载于:https://www.cnblogs.com/xqbk/archive/2011/11/19/2254788.html