After adding one or more classes with database mappings (JPA / hibernate), I would like Hibernate to print the necessary schema updates, so I can execute them in the database (for example, via FlyWay). I do not want updates to be automatic.
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 do not want to automatically update / change anything. I want to set this to check or not. When I do this, I cannot see the generated circuit.
I am a classic spring application, I used the hibernate SchemaExport class to print DDL.
SchemaExport schemaExport = new SchemaExport(cfg); schemaExport.execute(true, false, false, false);
Is there anything similar I can use in spring boot?
java spring spring-boot hibernate jpa
bertvh
source share