Add embedded-derby profile support by commit-8afcde3. Use bellow command on simter-kv-data-jpa module to run unit test on derby database:
mvn clean test -P embedded-derby
Notes:
derby not support drop table if exists st_kv, need drop table "st_kv".
derby not support add comment to table or column.
Need to set spring.datasource.jpa.properties.hibernate.globally_quoted_identifiers=true to make hibernate to auto quote all table and column name to avoid reserved word problem.
Need to set spring.datasource.continue-on-error=true to avoid the execute error of schema-drop.sql that stop the unti test.
Add
embedded-derby
profile support by commit-8afcde3. Use bellow command on simter-kv-data-jpa module to run unit test on derby database:Notes:
drop table if exists st_kv
, needdrop table "st_kv"
.spring.datasource.jpa.properties.hibernate.globally_quoted_identifiers=true
to make hibernate to auto quote all table and column name to avoid reserved word problem.spring.datasource.continue-on-error=true
to avoid the execute error ofschema-drop.sql
that stop the unti test.Reference: