根据hibernate隐射文件生产sql dll

import org.hibernate.cfg.Configuration; 
import org.hibernate.tool.hbm2ddl.SchemaExport;
public class SchemaUtil {    
    public static void main(String[] args){       
        Configuration cfg = new Configuration().configure();
        SchemaExport schemaExport= new SchemaExport(cfg);
        schemaExport.create(true, true);
    }
}

你可能感兴趣的:(sql,Hibernate)