Skip to content

Commit 38a55f1

Browse files
authored
Merge pull request #290 from domaframework/translate
Polish documents
2 parents 0200a5e + 92a31c5 commit 38a55f1

File tree

5 files changed

+34
-24
lines changed

5 files changed

+34
-24
lines changed

docs/faq.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Frequently Asked Questions
55
.. contents::
66
:depth: 3
77

8-
General Questions
9-
=================
8+
General
9+
=======
1010

1111
What does "Doma" mean?
1212
----------------------
@@ -19,11 +19,11 @@ What is annotation processing?
1919
Annotation processing, that was introduced in Java 6,
2020
allows us to validate and generate source code at compile time.
2121

22-
We use annotation processing to the following:
22+
We use annotation processing for the following purposes:
2323

24-
- generating meta classes from the classes annotated with ``@Entity`` and ``@Domain``;
25-
- generating implementation classes of the interfaces annotated with ``@Dao``; and
26-
- validating SQL statements.
24+
- Generating meta classes from the classes annotated with ``@Entity`` and ``@Domain``.
25+
- Generating implementation classes of the interfaces annotated with ``@Dao``.
26+
- Validating SQL templates.
2727

2828
Runtime environment
2929
===================
@@ -93,11 +93,11 @@ Does Doma generate SQL statements?
9393

9494
Yes, Doma generates the following statements:
9595

96-
- INSERT;
97-
- DELETE;
98-
- UPDATE;
99-
- stored procedure call; and
100-
- stored function call.
96+
- INSERT
97+
- DELETE
98+
- UPDATE
99+
- Stored procedure call
100+
- Stored function call
101101

102102
Doma doesn't generate SELECT statements
103103
but executes arbitrary SELECT statements and maps the results to the Java objects.

docs/index.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Doma has various strengths:
1818
* Verifies and generates source code at compile time using annotation processing.
1919
* Maps database columns to user-defined Java objects.
2020
* Uses SQL templates, called "two-way SQL".
21-
* Supports classes introduced in Java 8, such as ``java.time.LocalDate``, ``java.util.Optional``, and ``java.util.stream.Stream``.
21+
* Supports classes introduced in Java 8, such as ``java.time.LocalDate``,
22+
``java.util.Optional``, and ``java.util.stream.Stream``.
2223
* Has no dependence on other libraries.
2324

2425
This document consists of following sections:
@@ -28,6 +29,14 @@ This document consists of following sections:
2829
* `About Doma`_
2930
* `Links`_
3031

32+
.. admonition:: Help improve our documentation
33+
:class: important
34+
35+
Have feedback or a question? Found a typo?
36+
37+
Please add an issue or pull request to
38+
https://github.com/domaframework/doma and we’ll get back to you.
39+
3140
User Documentation
3241
==================
3342

@@ -72,6 +81,7 @@ About Doma
7281
Links
7382
=====
7483

84+
* `News and announcements <https://twitter.com/domaframework>`_
7585
* `GitHub repository <https://github.com/domaframework/doma>`_
7686
* `JavaDoc <http://www.javadoc.io/doc/org.seasar.doma/doma>`_
7787
* `Examples <https://github.com/domaframework/simple-examples>`_

docs/kotlin-support.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ If you use resource files such as SQL files, make the kapt find them:
130130

131131
Remember that you always have options as follows:
132132

133-
- Write all codes with Kotlin
134-
- Write all codes with Java
135-
- Write codes annotated with Doma's annotations in Java and others in Kotlin
133+
- Write all code in Kotlin
134+
- Write all code in Java
135+
- Write code annotated with Doma's annotations in Java and others in Kotlin
136136

137137
The third option is worth considering, because it can avoid some troubles with the kapt.
138138

docs/lombok-support.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ Doma supports `Lombok <https://projectlombok.org/>`_ 1.16.12 or above.
1414
Overview
1515
========
1616

17-
Both Lombok and Doma provide their own annotation processors.
17+
Both Lombok and Doma provide annotation processors.
1818
Because the execution order of annotation processors is not determined in Java,
19-
the Doma's annotation processors are not always aware of the class modifications made by
20-
the Lombok annotation processors.
19+
Doma's annotation processors are not always aware of the class modifications made by
20+
Lombok annotation processors.
2121

22-
To resolve the issue, the Doma's annotation processors recognise several Lombok's annotations
23-
and change their own behavior.
24-
For example, if the Doma's annotation processors find a class annotated with ``@lombok.Value``,
25-
they supposes that the class has a constructor whose arguments covers all instance fields.
22+
To resolve the issue, Doma's annotation processors recognize several of Lombok's annotations
23+
and change their behavior.
24+
For example, if Doma's annotation processors find a class annotated with ``@lombok.Value``,
25+
they suppose that the class has a constructor whose arguments cover all instance fields.
2626

2727
Best practices
2828
==============

docs/sql.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Overview
1111
Doma supports SQL templates, called "two-way SQL".
1212
"Two-way SQL" means that the SQL templates can be used in two ways:
1313

14-
1. to build dynamic SQL statements from the templates; and
15-
2. to execute the templates in SQL tools as they are.
14+
* To build dynamic SQL statements from the templates.
15+
* To execute the templates in SQL tools as they are.
1616

1717
Every SQL template must correspond to a DAO method.
1818
For example, suppose you have the pair of an SQL template and a DAO method as follows:

0 commit comments

Comments
 (0)