| Features | - implements Jakarta Persistence (JPA) beside its native API
- Hibernate Query Language (HQL), validated at compile time by Hibernate Processor
- flexible fetching strategies and a two-level cache
- optimistic locking with automatic versioning, or pessimistic locks
- temporal entities and audit logging
- native SQL queries in the database dialect
| - query API modeled on Scala's collections
- queries checked at compile time
- composable actions, queries and row expressions
- schema code generation from an existing database
- plain SQL queries when needed
- query compiler targeting PostgreSQL, MySQL, SQL Server, Oracle, DB2, SQLite, H2, HSQLDB and Derby
- database metadata introspection API
- Slick TestKit for database plugins
- All 9 features
| - SQL in XML mapper files or annotations
- dynamic SQL for conditional queries
- stored procedure support
- advanced result mappings to POJOs, Maps and primitives
- removes most JDBC boilerplate
- Spring Boot starter (mybatis-spring-boot-starter) with auto-configuration
| - typesafe SQL DSL
- lightweight DAO API
- JDBC and R2DBC drivers
- H2, MariaDB, MySQL, Oracle, PostgreSQL, Redshift, SQL Server and SQLite
- schema migration utilities
- encrypted and hashed column types
- JSON and JSONB column types
- Spring Boot 3 and 4 starters
|