SchemaExport(cfg).create(boolean script,boolean...

create

public void create(boolean script,
                   boolean export)
Run the schema creation script. Parameters: script- print the DDL to the consoleexport- export the script to the database

drop

public void drop(boolean script,
                 boolean export)
Run the drop schema script. Parameters: script- print the DDL to the consoleexport- export the script to the database

execute

public void execute(boolean script,
                    boolean export,
                    boolean justDrop,
                    boolean justCreate)
create()和drop() 都是調用的execute()方法,create (boolean script,boolean export)中
script 控制 是否將建表語句輸入到控制檯,export 控制是否將 建表語句輸入到 數據庫,實際上控制是否建表!
drop 方法同理!
相關文章
相關標籤/搜索