After I've added one or more classes with database mappings (JPA/hibernate), I would like Hibernate to print out the necessary schema updates so I can execute them on the database (through FlyWay for example). I do not want the updates to be executed automatically.
The only property that seems to give some control over this is the following
org.hibernate.tool.hbm2ddl=validate|update|create|create-drop|none
I don't want to update/change anything automatically. I want to set this to validate or none. When I do this, I don't get to see the generated schema.
I classical spring application, I used to use the hibernate SchemaExport
class to print the DDL.
SchemaExport schemaExport = new SchemaExport(cfg);
schemaExport.execute(true, false, false, false);
Is there anything similar I can use in Spring Boot?