| Looking through the code, I just do not see how this happens. Create, drop and migrate (schema update) all use the same org.hibernate.tool.schema.internal.exec.GenerationTarget implementation for targeting the database (org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase) does log the executed SQL statements to the SqlStatementLogger. Now... if you are not running the the migration to the database (you are just rendering the commands to script, etc) then the statements will not be logged. This is by design - SqlStatementLogger only captures executed statements. Again, this is all by design. |