diff --git a/build.gradle b/build.gradle index 3e7c9fb..e49cf62 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.flexcodelabs' -version = '0.0.21' +version = '0.0.22' description = 'Flextuma App' java { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index e4cc2d1..a2f8bb3 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -16,7 +16,7 @@ server.servlet.session.timeout=${SESSION_TIMEOUT:30m} spring.jpa.open-in-view=${JPA_OPEN_IN_VIEW:false} spring.jpa.database-platform=${JPA_DIALECT:org.hibernate.dialect.PostgreSQLDialect} -spring.jpa.hibernate.ddl-auto=${JPA_DDL_AUTO:create} +spring.jpa.hibernate.ddl-auto= spring.jpa.properties.hibernate.default_batch_fetch_size=${BATCH_SIZE:100} spring.jpa.show-sql=${JPA_SHOW_SQL:true} @@ -30,6 +30,9 @@ logging.level.org.hibernate.engine.jdbc.spi.SqlExceptionHelper=${SQL_EXCEPTION_H spring.jpa.properties.hibernate.format_sql=true spring.jpa.properties.hibernate.use_sql_comments=true spring.jpa.properties.hibernate.generate_statistics=true +spring.jpa.properties.hibernate.javax.persistence.schema-generation.scripts.action=create +spring.jpa.properties.hibernate.javax.persistence.schema-generation.scripts.create-target=ddl-export.sql +spring.jpa.properties.hibernate.hbm2ddl.auto=create logging.level.org.hibernate.tool.hbm2ddl=DEBUG logging.level.org.hibernate.schema=DEBUG logging.level.org.hibernate.engine.jdbc.env.spi.SchemaNameResolver=DEBUG