
Welcome to Doma 2¶
Doma 2 is a database access framework for Java 8+. Doma has various strengths:
- Verifies and generates source code at compile time using annotation processing.
- Maps database columns to user-defined Java objects.
- Uses SQL templates, called “two-way SQL”.
- Supports classes introduced in Java 8, such as
java.time.LocalDate
,java.util.Optional
, andjava.util.stream.Stream
. - Has no dependence on other libraries.
This document consists of following sections:
Help improve our documentation
Have feedback or a question? Found a typo?
Please add an issue or pull request to https://github.com/domaframework/doma and we’ll get back to you.
User Documentation¶
- Get started!(IntelliJ IDEA)
- Get started!(Eclipse)
- Configuration
- Basic classes
- Domain classes
- Embeddable classes
- Entity classes
- Dao interfaces
- Queries
- Query builders
- Criteria API
- Introduction
- Entityql DSL
- NativeSql DSL
- Where expression (Entityql, NativeSql)
- Join expression
- Aggregate Functions (NativeSql)
- Group by expression (NativeSql)
- Having expression (NativeSql)
- Order by expression (Entityql, NativeSql)
- Limit and Offset expression (Entityql, NativeSql)
- For Update expression (Entityql, NativeSql)
- Union expression (NativeSql)
- Delete statement (NativeSql)
- Insert statement (NativeSql)
- Update statement (NativeSql)
- Tips
- Sample projects
- SQL templates
- Expression language
- Transaction
- Building an application
- Annotation processing
- Lombok support
- Kotlin support