|
2 | 2 | msgstr "" |
3 | 3 | "Project-Id-Version: doma-docs\n" |
4 | 4 | "Report-Msgid-Bugs-To: \n" |
5 | | -"POT-Creation-Date: 2025-01-18 21:46+0900\n" |
| 5 | +"POT-Creation-Date: 2025-02-24 14:52+0900\n" |
6 | 6 | "Last-Translator: \n" |
7 | 7 | "Language-Team: Japanese\n" |
8 | 8 | "MIME-Version: 1.0\n" |
@@ -89,85 +89,61 @@ msgstr "外部ドメインクラス" |
89 | 89 |
|
90 | 90 | #: ../../domain.rst:190 |
91 | 91 | msgid "This feature allows you to define any class as a domain class, even if you cannot annotate the class with the ``@Domain`` annotation." |
92 | | -msgstr "" |
| 92 | +msgstr "この機能を使用すると、``@Domain`` アノテーションでクラスに注釈を付けることができなくても、任意のクラスをドメインクラスとして定義できます。" |
93 | 93 |
|
94 | 94 | #: ../../domain.rst:193 |
95 | | -msgid "To define external domain classes, you have to do as follows:" |
96 | | -msgstr "外部ドメイン クラスを定義するには、次のようにします。" |
97 | | - |
98 | | -#: ../../domain.rst:195 |
99 | | -msgid "Create a class that implements ``org.seasar.doma.jdbc.domain.DomainConverter`` and annotate ``@ExternalDomain`` to the class" |
100 | | -msgstr "``org.seasar.Doma.jdbc.domain.DomainConverter`` を実装するクラスを作成し、クラスに ``@ExternalDomain`` アノテーションを付ける" |
101 | | - |
102 | | -#: ../../domain.rst:197 |
103 | | -msgid "Create a class that is annotated with ``@DomainConverters``" |
104 | | -msgstr "``@DomainConverters`` アノテーションを付けたクラスを作成する" |
105 | | - |
106 | | -#: ../../domain.rst:198 |
107 | | -msgid "Specify the class annotated with ``@ExternalDomain`` to the ``@DomainConverters``'s ``value`` element" |
108 | | -msgstr "``@DomainConverters`` の ``value`` 要素に ``@ExternalDomain`` アノテーションを付けたクラスを指定する" |
| 95 | +msgid "To define external domain classes, you have to create a class that implements ``org.seasar.doma.jdbc.domain.DomainConverter`` and annotate ``@ExternalDomain`` to the class." |
| 96 | +msgstr "外部ドメインクラスを定義するには、``org.seasar.doma.jdbc.domainConverter`` を実装するクラスを作成し、``@ExternalDomain`` を注釈する必要があります。" |
109 | 97 |
|
110 | | -#: ../../domain.rst:199 |
111 | | -msgid "Specify the full qualified name of the class annotated with ``@DomainConverters`` to the option of :doc:`annotation-processing`" |
112 | | -msgstr ":doc:`annotation-processing` のオプションに ``@DomainConverters`` アノテーションを付けたクラスの完全修飾名を指定する" |
113 | | - |
114 | | -#: ../../domain.rst:202 |
| 98 | +#: ../../domain.rst:196 |
115 | 99 | msgid "Suppose, for instance, there is the ``PhoneNumber`` class that you can change:" |
116 | | -msgstr "たとえば、ソースコードを変更でない ``PhoneNumber`` クラスがあるとします。" |
117 | | - |
118 | | -#: ../../domain.rst:223 |
119 | | -msgid "First, to define the ``PhoneNumber`` class as an external domain class, create following class:" |
120 | | -msgstr "まず、``PhoneNumber`` クラスを外部ドメインクラスとして定義するために、次のクラスを作成します。" |
121 | | - |
122 | | -#: ../../domain.rst:242 |
123 | | -msgid "Then create following class and specify the above class to the ``@DomainConverters``'s ``value`` element:" |
124 | | -msgstr "次に、次のクラスを作成し、上記のクラスを ``@DomainConverters`` の ``value`` 要素に指定します。" |
| 100 | +msgstr "たとえば、ソースコードを変更できない ``PhoneNumber`` クラスがあるとします。" |
125 | 101 |
|
126 | | -#: ../../domain.rst:250 |
127 | | -msgid "Finally, specify the full qualified name of the above class to the option of :doc:`annotation-processing`. If you use Gradle, specify the option in the build script as follows:" |
128 | | -msgstr "最後に、:doc:`annotation-processing` のオプションに上記クラスの完全修飾名を指定します。 Gradle を使用する場合は、ビルド スクリプトで次のようにオプションを指定します。" |
| 102 | +#: ../../domain.rst:217 |
| 103 | +msgid "To define the ``PhoneNumber`` class as an external domain class, create following class:" |
| 104 | +msgstr "``PhoneNumber`` クラスを外部ドメインクラスとして定義するには、次のクラスを作成します。" |
129 | 105 |
|
130 | | -#: ../../domain.rst:262 |
| 106 | +#: ../../domain.rst:237 |
131 | 107 | msgid "Using type parameters in external domain classes" |
132 | 108 | msgstr "外部ドメインクラスにおける型パラメータの使用" |
133 | 109 |
|
134 | | -#: ../../domain.rst:264 |
| 110 | +#: ../../domain.rst:239 |
135 | 111 | msgid "All external domain class declarations have type parameters:" |
136 | 112 | msgstr "外部ドメインクラスには任意の数の型パラメータを宣言できます。" |
137 | 113 |
|
138 | | -#: ../../domain.rst:281 |
| 114 | +#: ../../domain.rst:256 |
139 | 115 | msgid "In the ``DomainConverter`` implementation class, specify a wildcard ``?`` as type arguments to the external domain class:" |
140 | 116 | msgstr "``DomainConverter`` 実装クラスで、外部ドメインクラスへの型引数としてワイルドカード ``?`` を指定します。" |
141 | 117 |
|
142 | | -#: ../../domain.rst:303 |
| 118 | +#: ../../domain.rst:278 |
143 | 119 | msgid "Direct mapping of external domain classes to the database" |
144 | | -msgstr "" |
| 120 | +msgstr "外部ドメインクラスのデータベースへの直接マッピング" |
145 | 121 |
|
146 | | -#: ../../domain.rst:305 |
| 122 | +#: ../../domain.rst:280 |
147 | 123 | msgid "All external domain classes can be directly mapped to any database type." |
148 | | -msgstr "" |
| 124 | +msgstr "すべての外部ドメインクラスは、直接任意のデータベースの型にマッピングできます。" |
149 | 125 |
|
150 | | -#: ../../domain.rst:307 |
| 126 | +#: ../../domain.rst:282 |
151 | 127 | msgid "Here's an example of mapping ``java.util.UUID`` to PostgreSQL's UUID type." |
152 | | -msgstr "" |
| 128 | +msgstr "``java.util.UUID`` を PostgreSQL の UUID 型にマッピングする例を次に示します。" |
153 | 129 |
|
154 | | -#: ../../domain.rst:309 |
| 130 | +#: ../../domain.rst:284 |
155 | 131 | msgid "First, create an implementation of ``org.seasar.doma.jdbc.type.JdbcType`` to handle the mapping:" |
156 | | -msgstr "" |
| 132 | +msgstr "まず、マッピングを処理するために ``org.seasar.doma.jdbc.type.JdbcType`` の実装を作成します。" |
157 | 133 |
|
158 | | -#: ../../domain.rst:343 |
159 | | -msgid "Next, create a class that extends ``org.seasar.doma.it.domain.JdbcTypeProvider``, and in the ``getJdbcType`` method, return an instance of the ``JdbcType`` implementation created above. Don't forget to annotate the class with ``@ExternalDomain``:" |
160 | | -msgstr "" |
| 134 | +#: ../../domain.rst:318 |
| 135 | +msgid "Then, create a class that extends ``org.seasar.doma.it.domain.JdbcTypeProvider``, and in the ``getJdbcType`` method, return an instance of the ``JdbcType`` implementation created above:" |
| 136 | +msgstr "次に、``org.seasar.doma.it.domain.JdbcTypeProvider`` を拡張したクラスを作成し、``getJdbcType`` メソッドで上記で作成した ``JdbcType`` 実装のインスタンスを返します。" |
161 | 137 |
|
162 | | -#: ../../domain.rst:360 |
163 | | -msgid "The rest follows the standard approach. Simply add ``PostgresUUIDConverter`` to the ``@DomainConverters`` annotation, and specify the fully qualified name of the class with the ``@DomainConverters`` annotation in the annotation processing options." |
164 | | -msgstr "" |
| 138 | +#: ../../domain.rst:334 |
| 139 | +msgid "Don't forget to annotate the class with ``@ExternalDomain``." |
| 140 | +msgstr "クラスに ``@ExternalDomain`` を注釈することを忘れないでください。" |
165 | 141 |
|
166 | | -#: ../../domain.rst:366 |
| 142 | +#: ../../domain.rst:337 |
167 | 143 | msgid "Example" |
168 | 144 | msgstr "例" |
169 | 145 |
|
170 | | -#: ../../domain.rst:368 |
| 146 | +#: ../../domain.rst:339 |
171 | 147 | msgid "The Domain classes showed above are used as follows:" |
172 | 148 | msgstr "上記のドメインクラスは次のように使用されます。" |
173 | 149 |
|
0 commit comments