Class MysqlSchemaBaselineDumper

java.lang.Object
ubic.gemma.core.util.test.MysqlSchemaBaselineDumper

public final class MysqlSchemaBaselineDumper extends Object
One-off Flyway baseline generator for the MySQL/InnoDB path. Sibling of SchemaBaselineDumper (which targets H2 + MODE=MYSQL). Drives Hibernate via the MySQL57InnoDBDialect and writes the CREATE DDL using JPA's standard jakarta.persistence.schema-generation.scripts.* properties — no live MySQL connection needed (Hibernate constructs the SQL dialect-only).

Output defaults to src/main/resources/db/migration/mysql/V1__mysql_baseline.sql.

Run from the gemma-core directory:

mvn -q test-compile
mvn -q exec:java -Dexec.mainClass=ubic.gemma.core.util.test.MysqlSchemaBaselineDumper \
    -Dexec.classpathScope=test
See Also: