ExportDB

xiaoxiao2026-04-15  5

package com.infoer.cardb.model;import org.hibernate.cfg.Configuration;import org.hibernate.tool.hbm2ddl.SchemaExport;public class ExportDB { public static void main(String[] args) { //读取hibernate.cfg.xml文件 Configuration cfg = new Configuration().configure(); SchemaExport export = new SchemaExport(cfg); export.create(true, true); }}
转载请注明原文地址: https://www.6miu.com/read-5047377.html

最新回复(0)