📄 collection_mapping.po
字号:
"<literal>fetch</literal> (옵션, 디폴트는 <literal>select</literal>) outer-""join 페칭, sequential select 페칭, 그리고 sequential subselect 페칭 사이에서 ""선택하라."#. 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>) 이 콜렉션""의 lazily fetching 인스턴스에 대해 \"배치 사이즈\"를 지정하라."#. 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>): ""Hibernate가 콜렉션 프로퍼티 값에 접근하는데 사용할 방도."#. 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>): 콜렉션의 상태에 대한 변경들이 소유하는 엔티티의 버전의 증가로 귀결""될 것인지를 지정한다. (one to many 연관들에 대해, 이 설정을 사용 불가능하게 ""하는 것이 종종 합당하다.)"#. 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 "콜렉션 foreign 키들"#. 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 """콜렉션 인스턴스들은 그 콜렉션을 소유하는 엔티티의 foreign 키에 의해 데이터베""이스 내에서 구별지워진다. 이 foreign 키는 그 콜렉션 테이블의 <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 """foreign 키 컬럼에 대한 null 허용 가능 컨스트레인트가 존재할 수 있다. 대부분""의 콜렉션들에 대해, 이것이 당연히 수반된다. 단방향 one to many 연관들의 경""우, foreign 키는 디폴트로 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 """foreign 키 컨스트레인트는 <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 타입을 포함할 수도 있다. 이""것은 중요한 구분이다: 콜렉션 내에 있는 객체는 \"값(value)\" 의미로 처리될 수""도 있거나(그것의 생명주기는 콜렉션 소유자에 의존한다) 그것은 그것 자신의 생명""주기를 가진 또 다른 엔티티에 대한 참조일 수 있다. 후자의 경우, 두 개의 객체""들 사이의 \"링크\" 만이 그 콜렉션에 의해 소유된 상태로 간주된다."#. 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 """포함된 타입은 콜렉션 요소 타입으로서 불려진다. 콜렉션 요소들은 <literal><""element></literal> 또는 <literal><composite-element></literal>에 의""해 매핑되거나, 엔티티 참조들의 경우에 <literal><one-to-many></literal> ""또는 <literal><many-to-many></literal>로서 매핑된다. 앞의 두 개는 ""value 의미를 가진 요소들을 매핑시키고, 뒤의 두개는 엔티티 연관들을 매핑하는""데 사용된다."#. 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>로 매핑된 composite 타입일 수 있다. 배열 또는 리스트의 ""인덱스는 항상 <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이 데이터""베이스로부터 검색될 때 그것은 그것의 순서를 보유하지 않지만, 그것은 선택적으""로 정렬(sorting)되거나 ordering될 수도 있다."#. 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 "값들을 가진 콜렉션들과 many-to-many 연관들"#. 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 """어떤 값들을 가진 콜렉션 또는 many-to-many 연관은 foreign 키 컬럼이나 컬럼들, ""<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-formatmsgid """<programlistingco> <areaspec> <area id=\"element1b\" coords=\"2 50\"/> <area ""id=\"element2b\" coords=\"3 50\"/> <area id=\"element3b\" coords=\"4 50\"/> ""</areaspec> <programlisting><![CDATA[<element\n"" column=\"column_name\"\n"" formula=\"any SQL expression\"\n"" type=\"typename\"\n"" length=\"L\"\n"" precision=\"P\"\n"" scale=\"S\"\n"" not-null=\"true|false\"\n"" unique=\"true|false\"\n"" node=\"element-name\"\n""/>]]></programlisting> <calloutlist> <callout arearefs=\"element1b\"> <para> ""<literal>column</literal> (optional): The name of the column holding the ""collection element values. </para> </callout> <callout arearefs=\"element2b""\"> <para> <literal>formula</literal> (optional): An SQL formula used to ""evaluate the element. </para> </callout> <callout arearefs=\"element3b\"> ""<para> <literal>type</literal> (required): The type of the collection ""element. </para> </callout> </calloutlist> </programlistingco> <para> A ""<emphasis>many-to-many association</emphasis> is specified using the ""<literal><many-to-many></literal> element. </para> <programlistingco> ""<areaspec> <area id=\"manytomany1\" coords=\"2 60\"/> <area id=\"manytomany2""\" coords=\"3 60\"/> <area id=\"manytomany3\" coords=\"4 60\"/> <area id=""\"manytomany4\" coords=\"5 60\"/> <area id=\"manytomany5\" coords=\"6 60\"/> ""<area id=\"manytomany6\" coords=\"7 60\"/> <area id=\"manytomany7\" coords=""\"8 60\"/> <area id=\"manytomany8\" coords=\"9 60\"/> </areaspec> ""<programlisting><![CDATA[<many-to-many\n"" column=\"column_name\"\n"" formula=\"any SQL expression\"\n"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -