📄 collection_mapping.po
字号:
"(useful if the collection should contain only a subset of the available data)"msgstr """<literal>where</literal> (オプション)コレクションの検索や削除の際に使う 任""意のSQLの<literal>WHERE</literal> 条件を指定します (利用可能なデータの一部分""だけをコレクションが含むべきときに、これは有用です)。"#. Tag: para#: collection_mapping.xml:161#, no-c-formatmsgid """<literal>fetch</literal> (optional, defaults to <literal>select</literal>) ""Choose between outer-join fetching, fetching by sequential select, and ""fetching by sequential subselect."msgstr """<literal>fetch</literal>(オプション - デフォルトは <literal>select</""literal>) 外部結合によるフェッチ、順次選択フェッチ(sequential select ""fetch)、 順次サブセレクトフェッチ(sequential subselect fetch)のどれかを選""択してください。"#. Tag: para#: collection_mapping.xml:168#, no-c-formatmsgid """<literal>batch-size</literal> (optional, defaults to <literal>1</literal>) ""specify a \"batch size\" for lazily fetching instances of this collection."msgstr """<literal>batch-size</literal> (オプション - デフォルトは <literal>1</""literal>) コレクションのインスタンスの遅延フェッチのための「バッチサイズ」を""指定します。"#. Tag: para#: collection_mapping.xml:174#, no-c-formatmsgid """<literal>access</literal> (optional - defaults to <literal>property</""literal>): The strategy Hibernate should use for accessing the collection ""property value."msgstr """<literal>access</literal> (オプション - デフォルトは <literal>property</""literal>) コレクション型プロパティの値にアクセスするために使用する戦略です。"#. Tag: para#: collection_mapping.xml:180#, no-c-formatmsgid """<literal>optimistic-lock</literal> (optional - defaults to <literal>true</""literal>): Species that changes to the state of the collection results in ""increment of the owning entity's version. (For one to many associations, it ""is often reasonable to disable this setting.)"msgstr """<literal>optimistic-lock</literal>(オプション - デフォルトは <literal>true</""literal>) コレクションの状態を変えることによって、 そのオーナーであるエン""ティティのバージョンがインクリメントされるかを指定します。 (一対多関連では、""ほとんどの場合において無効に設定するのが妥当です。)"#. Tag: para#: collection_mapping.xml:188#, no-c-formatmsgid """<literal>mutable</literal> (optional - defaults to <literal>true</literal>): ""A value of <literal>false</literal> specifies that the elements of the ""collection never change (a minor performance optimization in some cases)."msgstr """<literal>mutable</literal>(オプション - デフォルトは <literal>true</""literal>) <literal>false</literal> 値は、コレクションの要素が変更されないこ""とを表します (ある場合には、少しパフォーマンスを高めます)。"#. Tag: title#: collection_mapping.xml:198#, no-c-formatmsgid "Collection foreign keys"msgstr "コレクションの外部キー"#. Tag: para#: collection_mapping.xml:200#, no-c-formatmsgid """Collection instances are distinguished in the database by the foreign key of ""the entity that owns the collection. This foreign key is referred to as the ""<emphasis>collection key column</emphasis> (or columns) of the collection ""table. The collection key column is mapped by the <literal><key></""literal> element."msgstr """コレクションのインスタンスは、データベース内では、 そのコレクションを所有する""エンティティの外部キーによって識別されます。 この外部キーはコレクションテーブ""ルの <emphasis>コレクションキーカラム</emphasis> と呼ばれます。 コレクション""キーカラムは <literal><key></literal> 要素によりマッピングします。"#. Tag: para#: collection_mapping.xml:208#, no-c-formatmsgid """There may be a nullability constraint on the foreign key column. For most ""collections, this is implied. For unidirectional one to many associations, ""the foreign key column is nullable by default, so you might need to specify ""<literal>not-null=\"true\"</literal>."msgstr """外部キーカラムにはnull設定制約があるかもしれません。 ほとんどのコレクションに""当てはまるでしょう。 単方向の一対多関連において、外部キーカラムはデフォルトで""nullを許す設定になっています。 よって、<literal>not-null=\"true\"</literal> ""を指定する必要があるかもしれません。"#. Tag: programlisting#: collection_mapping.xml:215#, no-c-formatmsgid "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"msgstr ""#. Tag: para#: collection_mapping.xml:217#, no-c-formatmsgid """The foreign key constraint may use <literal>ON DELETE CASCADE</literal>."msgstr """外部キーの制約が <literal>ON DELETE CASCADE</literal> を使うかもしれません。"#. Tag: programlisting#: collection_mapping.xml:221#, no-c-formatmsgid "<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"msgstr ""#. Tag: para#: collection_mapping.xml:223#, no-c-formatmsgid """See the previous chapter for a full definition of the <literal><key></""literal> element."msgstr """<literal><key></literal> 要素のすべての定義については前の章を参照してく""ださい。"#. Tag: title#: collection_mapping.xml:231#, no-c-formatmsgid "Collection elements"msgstr "コレクションの要素"#. Tag: para#: collection_mapping.xml:233#, no-c-formatmsgid """Collections may contain almost any other Hibernate type, including all basic ""types, custom types, components, and of course, references to other ""entities. This is an important distinction: an object in a collection might ""be handled with \"value\" semantics (its life cycle fully depends on the ""collection owner) or it might be a reference to another entity, with its own ""life cycle. In the latter case, only the \"link\" between the two objects is ""considered to be state held by the collection."msgstr """コレクションは他のHibernateの型のほとんど(すべての基本型、カスタム型、コン""ポーネント、 他のエンティティへの参照)を格納することができます。 次の点は重""要な違いになります。 コレクションに格納されたオブジェクトが「値」セマンティク""スとして扱われるのか (ライフサイクルはコレクションのオーナーに完全に依存しま""す)、 もしくはそれ自身のライフサイクルを持った別のエンティティへの参照である""かのかという違いです。 後者は、2つのオブジェクト間の「リンク」をコレクション""に保持していると見なしているだけです。"#. Tag: para#: collection_mapping.xml:242#, no-c-formatmsgid """The contained type is referred to as the <emphasis>collection element type</""emphasis>. Collection elements are mapped by <literal><element></""literal> or <literal><composite-element></literal>, or in the case of ""entity references, with <literal><one-to-many></literal> or ""<literal><many-to-many></literal>. The first two map elements with ""value semantics, the next two are used to map entity associations."msgstr """格納される型は <emphasis>コレクション要素型</emphasis> と呼ばれます。 コレク""ション要素は、<literal><element></literal> または <literal><""composite-element></literal> によりマッピングされ、エンティティへの参照の""場合には <literal><one-to-many></literal> または <literal><many-to-""many></literal> によりマッピングされます。 最初の二つは値として要素をマッ""ピングし、次の二つはエンティティの関連をマッピングするのに使われます。"#. Tag: title#: collection_mapping.xml:254#, no-c-formatmsgid "Indexed collections"msgstr "インデックス付きのコレクション"#. Tag: para#: collection_mapping.xml:256#, no-c-formatmsgid """All collection mappings, except those with set and bag semantics, need an ""<emphasis>index column</emphasis> in the collection table - a column that ""maps to an array index, or <literal>List</literal> index, or <literal>Map</""literal> key. The index of a <literal>Map</literal> may be of any basic ""type, mapped with <literal><map-key></literal>, it may be an entity ""reference mapped with <literal><map-key-many-to-many></literal>, or it ""may be a composite type, mapped with <literal><composite-map-key></""literal>. The index of an array or list is always of type <literal>integer</""literal> and is mapped using the <literal><list-index></literal> ""element. The mapped column contains sequential integers (numbered from zero, ""by default)."msgstr """setとbagを除く全てのコレクションマッピングには、 コレクションテーブルの中に ""<emphasis>インデックス用のカラム</emphasis> が必要です。 そのカラムに、配列""や <literal>List</literal> のインデックス、 もしくは <literal>Map</literal> ""のキーをマッピングします。 <literal>Map</literal> のインデックスは、 ""<literal><map-key></literal> によりマッピングされた基本型か、 ""<literal><map-key-many-to-many></literal> によりマッピングされたエン""ティティの関連か、 あるいは <literal><composite-map-key></literal> によ""りマッピングされたコンポジット型になります。 配列かリストのインデックスは、常""に <literal>integer</literal> 型で、 <literal><list-index></literal> 要""素によりマッピングします。 マッピングされたカラムにはシーケンシャルな整数を格""納します(デフォルトでは0から番号が付けられます)。"#. Tag: sect2#: collection_mapping.xml:267#, no-c-formatmsgid """<programlistingco> <areaspec> <area id=\"index1\" coords=\"2 45\"/> <area id=""\"index2\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<list-""index \n"" column=\"column_name\"\n"" base=\"0|1|...\"/>]]></programlisting> <calloutlist> <callout ""arearefs=\"index1\"> <para> <literal>column_name</literal> (required): The ""name of the column holding the collection index values. </para> </callout> ""<callout arearefs=\"index1\"> <para> <literal>base</literal> (optional, ""defaults to <literal>0</literal>): The value of the index column that ""corresponds to the first element of the list or array. </para> </callout> </""calloutlist> </programlistingco> <programlistingco> <areaspec> <area id=""\"mapkey1\" coords=\"2 45\"/> <area id=\"mapkey2\" coords=\"3 45\"/> <area ""id=\"mapkey3\" coords=\"4 45\"/> </areaspec> <programlisting><![CDATA[<map-""key \n"" column=\"column_name\"\n"" formula=\"any SQL expression\"\n"" type=\"type_name\"\n"" node=\"@attribute-name\"\n"" length=\"N\"/>]]></programlisting> <calloutlist> <callout arearefs=""\"mapkey1\"> <para> <literal>column</literal> (optional): The name of the ""column holding the collection index values. </para> </callout> <callout ""arearefs=\"mapkey2\"> <para> <literal>formula</literal> (optional): A SQL ""formula used to evaluate the key of the map. </para> </callout> <callout ""arearefs=\"mapkey3\"> <para> <literal>type</literal> (reguired): The type of ""the map keys. </para> </callout> </calloutlist> </programlistingco> ""<programlistingco> <areaspec> <area id=\"indexmanytomany1\" coords=\"2 45\"/""> <area id=\"indexmanytomany2\" coords=\"3 45\"/> <area id=\"indexmanytomany3""\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<map-key-many-to-""many\n"" column=\"column_name\"\n"" formula=\"any SQL expression\"\n"" class=\"ClassName\"\n""/>]]></programlisting> <calloutlist> <callout arearefs=\"indexmanytomany1\"> ""<para> <literal>column</literal> (optional): The name of the foreign key ""column for the collection index values. </para> </callout> <callout arearefs=""\"indexmanytomany2\"> <para> <literal>formula</literal> (optional): A SQL ""formula used to evaluate the foreign key of the map key. </para> </callout> ""<callout arearefs=\"indexmanytomany3\"> <para> <literal>class</literal> ""(required): The entity class used as the map key. </para> </callout> </""calloutlist> </programlistingco>"msgstr ""#. Tag: para#: collection_mapping.xml:348#, no-c-formatmsgid """If your table doesn't have an index column, and you still wish to use ""<literal>List</literal> as the property type, you should map the property as ""a Hibernate <emphasis><bag></emphasis>. A bag does not retain its ""order when it is retrieved from the database, but it may be optionally ""sorted or ordered."msgstr """もしテーブルにインデックスカラムがなくても、プロパティ型として ""<literal>List</literal> を使いたければ、 Hibernateの <emphasis><bag></""emphasis> としてプロパティをマッピングします。 bagはデータベースから復元され""る時、順序を保持しません。 しかし、(メモリ上で)ソートしたり、(SQLで)順序""付けしたり(order by)することもできます。"#. Tag: para#: collection_mapping.xml:357#, no-c-formatmsgid """There are quite a range of mappings that can be generated for collections, ""covering many common relational models. We suggest you experiment with the ""schema generation tool to get a feeling for how various mapping declarations ""translate to database tables."msgstr """多くの一般的なリレーショナルモデルをカバーしたために、 コレクションのために利""用できるマッピングにはかなりの幅があります。 様々なマッピング宣言がどのように""データベーステーブルに変換されるかを知るために、 スキーマ生成ツールを使ってみ""ると良いでしょう。"#. Tag: title#: collection_mapping.xml:364#, no-c-formatmsgid "Collections of values and many-to-many associations"msgstr "値のコレクションと多対多関連"#. Tag: para#: collection_mapping.xml:366#, no-c-formatmsgid """Any collection of values or many-to-many association requires a dedicated ""<emphasis>collection table</emphasis> with a foreign key column or columns, ""<emphasis>collection element column</emphasis> or columns and possibly an ""index column or columns."msgstr """値のコレクションや多対多関連は、専用の <emphasis>コレクションテーブル</""emphasis> が必要です。 このテーブルは、外部キーカラムと、 <emphasis>コレク""ション要素のカラム</emphasis> と、 場合によってはインデックスカラムを持ちま""す。"#. Tag: para#: collection_mapping.xml:373#, no-c-formatmsgid """For a collection of values, we use the <literal><element></literal> ""tag."msgstr """値のコレクションのために、<literal><element></literal>タグを使用しま""す。"#. Tag: sect2#: collection_mapping.xml:375#, no-c-format
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -