spring.datasource.jdbc-url=jdbc:h2:mem:servermail
spring.datasource.username=mailuser
spring.datasource.password=mailpassword
spring.datasource.driver-class-name=org.h2.Driver
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect

spring.h2.console.enabled=true

spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=create

logging.level.com.lyubenblagoev=debug
logging.level.org.hibernate.SQL=debug
spring.datasource.jdbc-url=jdbc:h2:mem:servermail;MODE=LEGACY
spring.datasource.username=mailuser
spring.datasource.password=mailpassword
spring.datasource.driver-class-name=org.h2.Driver
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect

spring.h2.console.enabled=true

spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=create

logging.level.com.lyubenblagoev=debug
logging.level.org.hibernate.SQL=debug
Append ;MODE=LEGACY to JDBC URL for H2 as a workaround to a bug with identity columns
Append ;MODE=LEGACY to JDBC URL for H2 as a workaround to a bug with identity columns

References:

    * https://github.com/h2database/h2database/issues/3325
    * https://hibernate.atlassian.net/browse/HHH-14985
