H2
Testing
To test using H2 set the platform to h2
in
src/test/resources/application-test.yaml
Refer to docs / testing if application-test.yaml doesn't exist yet.
ebean:
test:
platform: h2 # h2, postgres, mysql, oracle, sqlserver
ddlMode: dropCreate # none | dropCreate | migrations
dbName: test
The above will use the following defaults:
url: | jdbc:h2:mem:{databaseName} |
---|---|
driver: | org.h2.Driver |
Types
UUID
UUID is a native H2 type.
History support
History support for H2 is provided by generating triggers and history table.