Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit f1d2334

Browse files
committed
Refactor llms.txt to enhance documentation structure and clarity
1 parent 9ad19ea commit f1d2334

File tree

1 file changed

+56
-51
lines changed

1 file changed

+56
-51
lines changed

docs/llms.txt

Lines changed: 56 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Doma
22

3-
Doma is a database access framework for Java that provides compile-time code generation, type-safe query building, and SQL template support. It offers a unique approach to database programming with annotation processing for compile-time validation and zero runtime dependencies.
3+
> Doma is a database access framework for Java that provides compile-time code generation, type-safe query building, and SQL template support. It offers a unique approach to database programming with annotation processing for compile-time validation and zero runtime dependencies.
44

5-
## Key Features
5+
**Key Features**
66

77
- **Compile-time Code Generation**: Uses annotation processing to generate DAO implementations and validate SQL queries at compile time
88
- **Type-safe Criteria API**: Build queries programmatically with full type safety and IDE support
@@ -12,68 +12,73 @@ Doma is a database access framework for Java that provides compile-time code gen
1212
- **Multi-language Support**: First-class support for Java and Kotlin
1313
- **Framework Integration**: Seamless integration with Spring Boot, Quarkus, and other frameworks
1414

15-
## Architecture
15+
**Architecture**
1616

1717
Doma follows a code-first approach where:
1818
1. You define entities using annotations
1919
2. Annotation processors generate DAO implementations at compile time
2020
3. SQL queries are validated against entity definitions
2121
4. Runtime execution uses generated, optimized code
2222

23-
## Use Cases
23+
**Use Cases**
2424

2525
- Applications requiring complex SQL queries with type safety
2626
- Projects needing compile-time validation of database operations
2727
- Systems where performance and minimal dependencies are critical
2828
- Teams preferring SQL-centric development over ORM abstractions
2929

30-
## Docs
30+
## Resources
3131

32-
- [Getting Started Guide](https://doma.readthedocs.io/en/stable/getting-started)
33-
- [Configuration](https://doma.readthedocs.io/en/stable/config)
34-
- [Basic Usage](https://doma.readthedocs.io/en/stable/basic)
35-
- [Domain Types](https://doma.readthedocs.io/en/stable/domain)
36-
- [Embeddable Objects](https://doma.readthedocs.io/en/stable/embeddable)
37-
- [Entity Mapping](https://doma.readthedocs.io/en/stable/entity)
38-
- [Data Access Objects (DAO)](https://doma.readthedocs.io/en/stable/dao)
39-
- [Aggregate Strategy](https://doma.readthedocs.io/en/stable/aggregate-strategy)
40-
- [Query Operations](https://doma.readthedocs.io/en/stable/query/)
41-
- [Select Queries](https://doma.readthedocs.io/en/stable/query/select)
42-
- [Insert Operations](https://doma.readthedocs.io/en/stable/query/insert)
43-
- [Update Operations](https://doma.readthedocs.io/en/stable/query/update)
44-
- [Delete Operations](https://doma.readthedocs.io/en/stable/query/delete)
45-
- [Batch Insert](https://doma.readthedocs.io/en/stable/query/batch-insert)
46-
- [Batch Update](https://doma.readthedocs.io/en/stable/query/batch-update)
47-
- [Batch Delete](https://doma.readthedocs.io/en/stable/query/batch-delete)
48-
- [Multi-row Insert](https://doma.readthedocs.io/en/stable/query/multi-row-insert)
49-
- [Stored Procedures](https://doma.readthedocs.io/en/stable/query/procedure)
50-
- [Functions](https://doma.readthedocs.io/en/stable/query/function)
51-
- [Script Execution](https://doma.readthedocs.io/en/stable/query/script)
52-
- [Query Factory](https://doma.readthedocs.io/en/stable/query/factory)
53-
- [SQL Processor](https://doma.readthedocs.io/en/stable/query/sql-processor)
54-
- [Query Builder](https://doma.readthedocs.io/en/stable/query-builder/)
55-
- [Type-safe Criteria API](https://doma.readthedocs.io/en/stable/query-dsl)
56-
- [SQL Templates (Two-way SQL)](https://doma.readthedocs.io/en/stable/sql)
57-
- [Expression Language](https://doma.readthedocs.io/en/stable/expression)
58-
- [Transaction Management](https://doma.readthedocs.io/en/stable/transaction)
59-
- [Build Configuration](https://doma.readthedocs.io/en/stable/build)
60-
- [Annotation Processing](https://doma.readthedocs.io/en/stable/annotation-processing)
61-
- [Lombok Support](https://doma.readthedocs.io/en/stable/lombok-support)
62-
- [Kotlin Support](https://doma.readthedocs.io/en/stable/kotlin-support)
63-
- [SLF4J Integration](https://doma.readthedocs.io/en/stable/slf4j-support)
64-
- [Java Module System Support](https://doma.readthedocs.io/en/stable/jpms-support)
65-
- [Spring Boot Integration](https://doma.readthedocs.io/en/stable/spring-boot-support)
66-
- [Quarkus Support](https://doma.readthedocs.io/en/stable/quarkus-support)
67-
- [Code Generation](https://doma.readthedocs.io/en/stable/codegen)
68-
- [Frequently Asked Questions](https://doma.readthedocs.io/en/stable/faq)
32+
- [Main Repository](https://github.com/domaframework/doma): Doma's Git Repository
33+
- [Release Notes](https://github.com/domaframework/doma/releases): Doma Release Notes
34+
- [JavaDoc API Reference](https://www.javadoc.io/doc/org.seasar.doma/doma-core/latest/index): Javadoc for Doma's API functions.
6935

70-
## Resources
36+
## Get Started
37+
38+
- [Getting Started Guide](https://doma.readthedocs.io/en/stable/getting-started): Getting Started Guide for Doma
39+
40+
## Documents
41+
42+
- [Configuration](https://doma.readthedocs.io/en/stable/config): Configuration settings for accessing the database with Doma
43+
- [Basic Classes](https://doma.readthedocs.io/en/stable/basic): Java types that can be directly mapped to database columns in Doma
44+
- [Domain Types](https://doma.readthedocs.io/en/stable/domain): Domain classes allow you to treat database column values as user-defined Java objects for enhanced type safety.
45+
- [Embeddable Objects](https://doma.readthedocs.io/en/stable/embeddable): Embeddable classes, marked with `@Embeddable`, group reusable property sets for entity classes.
46+
- [Entity Mapping](https://doma.readthedocs.io/en/stable/entity): Entity classes represent tables or query result sets via the `@Entity` annotation. They support inheritance, custom naming `(NamingType)`, immutability `(immutable=true)`, and table mapping (`@Table`).
47+
- [Query Operations](https://doma.readthedocs.io/en/stable/query/): Overview of how to perform SQL operations using Doma’s query annotations and methods.
48+
- [Select Queries](https://doma.readthedocs.io/en/stable/query/select): Explains how to retrieve data from the database using `@Select`.
49+
- [Insert Operations](https://doma.readthedocs.io/en/stable/query/insert): Describes how to add new records to the database with `@Insert`.
50+
- [Update Operations](https://doma.readthedocs.io/en/stable/query/update): Shows how to update existing records using `@Update`.
51+
- [Delete Operations](https://doma.readthedocs.io/en/stable/query/delete): Demonstrates how to delete records from the database with `@Delete`.
52+
- [Batch Insert](https://doma.readthedocs.io/en/stable/query/batch-insert): Details how to insert multiple records at once with `@BatchInsert`.
53+
- [Batch Update](https://doma.readthedocs.io/en/stable/query/batch-update): Describes how to update multiple records in a single batch using `@BatchUpdate`.
54+
- [Batch Delete](https://doma.readthedocs.io/en/stable/query/batch-delete): Explains how to delete multiple records in batch via `@BatchDelete`.
55+
- [Multi-row Insert](https://doma.readthedocs.io/en/stable/query/multi-row-insert): Shows how to insert multiple rows using a single SQL statement.
56+
- [Stored Procedures](https://doma.readthedocs.io/en/stable/query/procedure): Explains how to call stored procedures and functions with `@Procedure`.
57+
- [Functions](https://doma.readthedocs.io/en/stable/query/function): Guides on invoking database functions through Doma.
58+
- [Script Execution](https://doma.readthedocs.io/en/stable/query/script): Describes how to execute SQL script files using `@Script`.
59+
- [Query Factory](https://doma.readthedocs.io/en/stable/query/factory): Explains how to dynamically build and execute queries using QueryFactory.
60+
- [SQL Processor](https://doma.readthedocs.io/en/stable/query/sql-processor): Provides advanced SQL execution via the `@SqlProcessor` interface.
61+
- [Query Builder](https://doma.readthedocs.io/en/stable/query-builder/): Demonstrates how to construct SQL queries programmatically in Java.
62+
- [Type-safe Criteria API](https://doma.readthedocs.io/en/stable/query-dsl): Shows how to write type-safe, dynamic queries using Criteria API.
63+
- [SQL Templates (Two-way SQL)](https://doma.readthedocs.io/en/stable/sql): Explains how to use external SQL files with embedded conditions and bindings.
64+
- [Lombok Support](https://doma.readthedocs.io/en/stable/lombok-support): Describes how Doma integrates with Lombok to reduce boilerplate code.
65+
- [Kotlin Support](https://doma.readthedocs.io/en/stable/kotlin-support): Explains Doma’s compatibility and usage with the Kotlin programming language.
66+
- [SLF4J Integration](https://doma.readthedocs.io/en/stable/slf4j-support): Describes how Doma logs SQL and messages via the SLF4J logging framework.
67+
- [Java Module System Support](https://doma.readthedocs.io/en/stable/jpms-support): Details how Doma supports Java Platform Module System (JPMS).
68+
- [Spring Boot Integration](https://doma.readthedocs.io/en/stable/spring-boot-support): Explains how to integrate Doma with Spring Boot applications.
69+
- [Data Access Objects (DAO)](https://doma.readthedocs.io/en/stable/dao): Introduces how to define and use DAO interfaces with annotations in Doma.
70+
- [Aggregate Strategy](https://doma.readthedocs.io/en/stable/aggregate-strategy): Explains strategies for managing aggregate entities and associations.
71+
- [Expression Language](https://doma.readthedocs.io/en/stable/expression): Shows how to use Doma’s expression language in SQL templates.
72+
- [Transaction Management](https://doma.readthedocs.io/en/stable/transaction): Covers how to manage database transactions using Doma’s APIs.
73+
- [Build Configuration](https://doma.readthedocs.io/en/stable/build): Provides guidance on setting up Doma in Maven or Gradle projects.
74+
- [Annotation Processing](https://doma.readthedocs.io/en/stable/annotation-processing): Describes Doma’s compile-time annotation processing mechanism.
75+
- [Compile Plugin](https://github.com/domaframework/doma-compile-plugin): A Gradle plugin to run Doma’s annotation processor during build time.
76+
- [Quarkus Support](https://doma.readthedocs.io/en/stable/quarkus-support): Explains how to use Doma in Quarkus-based applications.
77+
- [Code Generation](https://doma.readthedocs.io/en/stable/codegen): Shows how to generate entity classes and DAOs using Doma tools.
78+
- [Frequently Asked Questions](https://doma.readthedocs.io/en/stable/faq): Provides answers to common questions and issues about using Doma.
79+
80+
## Optional
7181

72-
- [Main Repository](https://github.com/domaframework/doma)
73-
- [Release Notes](https://github.com/domaframework/doma/releases)
74-
- [JavaDoc API Reference](https://www.javadoc.io/doc/org.seasar.doma/doma-core/latest/index)
75-
- [Code Examples](https://github.com/domaframework/simple-examples)
76-
- [Compile Plugin](https://github.com/domaframework/doma-compile-plugin)
77-
- [Code Generation Plugin](https://github.com/domaframework/doma-codegen-plugin)
78-
- [News and Announcements](https://twitter.com/domaframework)
79-
- [Support Development](https://opencollective.com/doma)
82+
- [Support Development](https://opencollective.com/doma): Donation page for financially supporting the Doma project.
83+
- [Code Examples](https://github.com/domaframework/simple-examples): Repository of sample projects demonstrating Doma usage.
84+
- [News and Announcements](https://x.com/domaframework): Doma project updates and announcements via official X account.

0 commit comments

Comments
 (0)