JEHibernate selects the driver and dialect from the DatabaseType you choose; you only add the JDBC driver to the classpath. The dialect is auto-detected from the live connection — you never set hibernate.dialect by hand.
Supported databases
`DatabaseType`
Prefix
Default driver
H2
h2
org.h2.Driver
MYSQL
mysql
com.mysql.cj.jdbc.Driver
MARIADB
mariadb
org.mariadb.jdbc.Driver
POSTGRESQL
postgresql
org.postgresql.Driver
MSSQL_SERVER
mssql
com.microsoft.sqlserver.jdbc.SQLServerDriver
ORACLE
oracle
oracle.jdbc.OracleDriver
SQLITE
sqlite
org.sqlite.JDBC
HSQLDB
hsqldb
org.hsqldb.jdbc.JDBCDriver
H2, MySQL, MariaDB, and PostgreSQL are covered by the integration test suite; the others use the same code path.
Adding a driver
The driver is the host's choice — add exactly the one you deploy against.
Aligning versions with the BOM
Import jehibernate-bom once and drop the per-module versions, so jehibernate-core, -spring-boot, -plugin, and -testing always match.
Connection URLs
Dialect is auto-detected
You do not set a dialect. JEHibernate lets Hibernate resolve it from the JDBC connection, which is the correct and portable choice. If you ever need to force one (an exotic variant), {prefix}.dialect or config.dialect(...) still works.
UUID columns
UuidEntity ids map to the native UUID type per database: uuid on PostgreSQL and H2, binary(16) on MySQL/MariaDB, uniqueidentifier on SQL Server. You do not hard-code a column definition, and UUID entities work on PostgreSQL without extra setup.
Switching databases
With a properties file, an admin changes database.type and fills in the matching prefix block — no recompile. The dialect follows the connection automatically.
implementation(platform("de.jexcellence.hibernate:jehibernate-bom:4.2.0"))
implementation("de.jexcellence.hibernate:jehibernate-core") // version comes from the BOM