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 方法同理!
相关文章
相关标签/搜索