⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 collection_mapping.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 5 页
字号:
msgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""Report-Msgid-Bugs-To: http://bugs.kde.org\n""POT-Creation-Date: 2007-10-25 07:47+0000\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <LL@li.org>\n""MIME-Version: 1.0\n""Content-Type: text/plain; charset=UTF-8\n""Content-Transfer-Encoding: 8bit\n"#. Tag: title#: collection_mapping.xml:5#, no-c-formatmsgid "Collection Mapping"msgstr "콜렉션 매핑"#. Tag: title#: collection_mapping.xml:8#, no-c-formatmsgid "Persistent collections"msgstr "영속 콜렉션들"#. Tag: para#: collection_mapping.xml:10#, no-c-formatmsgid """Hibernate requires that persistent collection-valued fields be declared as ""an interface type, for example:"msgstr """예를 들어 Hibernate는 영속 콜렉션-값을 가진 필드들이 인터페이스 타입으로서 선""언될 것을 필요로 한다:"#. Tag: programlisting#: collection_mapping.xml:15#, no-c-formatmsgid """<![CDATA[public class Product {\n""    private String serialNumber;\n""    private Set parts = new HashSet();\n""    \n""    public Set getParts() { return parts; }\n""    void setParts(Set parts) { this.parts = parts; }\n""    public String getSerialNumber() { return serialNumber; }\n""    void setSerialNumber(String sn) { serialNumber = sn; }\n""}]]>"msgstr ""#. Tag: para#: collection_mapping.xml:17#, no-c-formatmsgid """The actual interface might be <literal>java.util.Set</literal>, ""<literal>java.util.Collection</literal>, <literal>java.util.List</literal>, ""<literal>java.util.Map</literal>, <literal>java.util.SortedSet</literal>, ""<literal>java.util.SortedMap</literal> or ... anything you like! (Where ""\"anything you like\" means you will have to write an implementation of ""<literal>org.hibernate.usertype.UserCollectionType</literal>.)"msgstr """실제 인터페이스는 <literal>java.util.Set</literal>, <literal>java.util.""Collection</literal>, <literal>java.util.List</literal>, <literal>java.util.""Map</literal>, <literal>java.util.SortedSet</literal>, <literal>java.util.""SortedMap</literal> 또는 당신이 좋아하는 어떤 것일 수 있다!(여기서 \"당신이 ""좋아하는 어떤 것\"이란 당신이 <literal>org.hibernate.usertype.""UserCollectionType</literal>에 대한 구현을 작성해야 함을 의미한다.)"#. Tag: para#: collection_mapping.xml:26#, no-c-formatmsgid """Notice how we initialized the instance variable with an instance of ""<literal>HashSet</literal>. This is the best way to initialize collection ""valued properties of newly instantiated (non-persistent) instances. When you ""make the instance persistent - by calling <literal>persist()</literal>, for ""example - Hibernate will actually replace the <literal>HashSet</literal> ""with an instance of Hibernate's own implementation of <literal>Set</""literal>. Watch out for errors like this:"msgstr """우리가 <literal>HashSet</literal>의 인스턴스를 가진 인스턴스 변수를 초기화 시""켰던 방법을 주목하라. 이것은 새로이 초기화 된(비-영속) 인스턴스들을 가진 콜렉""션 값 프로퍼티들을 초기화 시키는 최선의 방법이다. 당신이 -예를 들어 ""<literal>persist()</literal>를 호출하여- 인스턴스를 영속화 시킬 때 Hibernate""는 실제로 <literal>HashSet</literal>을 <literal>Set</literal>에 대한 ""Hibernate 자신의 구현의 인스턴스로 대체시킬 것이다. 다음과 같은 오류들을 관찰""하라:"#. Tag: programlisting#: collection_mapping.xml:36#, no-c-formatmsgid """<![CDATA[Cat cat = new DomesticCat();\n""Cat kitten = new DomesticCat();\n""....\n""Set kittens = new HashSet();\n""kittens.add(kitten);\n""cat.setKittens(kittens);\n""session.persist(cat);\n""kittens = cat.getKittens(); // Okay, kittens collection is a Set\n""(HashSet) cat.getKittens(); // Error!]]>"msgstr ""#. Tag: para#: collection_mapping.xml:38#, no-c-formatmsgid """The persistent collections injected by Hibernate behave like ""<literal>HashMap</literal>, <literal>HashSet</literal>, <literal>TreeMap</""literal>, <literal>TreeSet</literal> or <literal>ArrayList</literal>, ""depending upon the interface type."msgstr """Hibernate에 의해 도입된 영속 콜렉션들은 인터페이스 타입에 따라 ""<literal>HashMap</literal>, <literal>HashSet</literal>, <literal>TreeMap</""literal>, <literal>TreeSet</literal> 또는 <literal>ArrayList</literal>와 같""이 행위한다."#. Tag: para#: collection_mapping.xml:45#, no-c-formatmsgid """Collections instances have the usual behavior of value types. They are ""automatically persisted when referenced by a persistent object and ""automatically deleted when unreferenced. If a collection is passed from one ""persistent object to another, its elements might be moved from one table to ""another. Two entities may not share a reference to the same collection ""instance. Due to the underlying relational model, collection-valued ""properties do not support null value semantics; Hibernate does not ""distinguish between a null collection reference and an empty collection."msgstr """콜렉션 인스턴스들은 value 타입들을 가진 통상의 특징을 갖는다. 그것들은 영속 ""객체에 의해 참조될 때 자동적으로 영속화 되고 참조 해제될 때 자동적으로 삭제된""다. 만일 하나의 콜렉션이 하나의 영속 객체로부터 또 다른 영속 객체로 전달될 ""때, 그것의 요소들은 하나의 테이블로부터 다른 테이블로 이동될 수 있다. 두 개""의 엔티티들은 동일한 콜렉션 인스턴스에 대한 참조를 공유하지 않는다. 기본 관계""형 모형 때문에 콜렉션 값 프로퍼티들은 null 값 의미들을 지원하지 않는다; ""Hibernate는 null 콜렉션 참조와 공백의 콜렉션 사이를 구별 짓지 않는다."#. Tag: para#: collection_mapping.xml:56#, no-c-formatmsgid """You shouldn't have to worry much about any of this. Use persistent ""collections the same way you use ordinary Java collections. Just make sure ""you understand the semantics of bidirectional associations (discussed later)."msgstr """당신은 이것의 어떤 것에 대해 너무 많이 걱정하지 않아도 될 것이다. 당신이 통상""의 자바 콜렉션들을 사용하는 것과 동일한 방법으로 영속 콜렉션들을 사용하라. 단""지 당신이 양방향 연관관계들에 대한 의미를 확실히 이해하도록 하라(나중에 논의""됨)."#. Tag: title#: collection_mapping.xml:65#, no-c-formatmsgid "Collection mappings"msgstr "콜렉션 매핑들"#. Tag: para#: collection_mapping.xml:67#, no-c-formatmsgid """The Hibernate mapping element used for mapping a collection depends upon the ""type of the interface. For example, a <literal>&lt;set&gt;</literal> element ""is used for mapping properties of type <literal>Set</literal>."msgstr """콜렉션을 매핑하는데 사용되는 Hiberante 매핑 요소는 인터페이스의 타입에 의존한""다. 예를 들어<literal>&lt;set&gt;</literal> 요소는 <literal>Set</literal> 타""입의 매핑 프로퍼티들에 사용된다"#. Tag: programlisting#: collection_mapping.xml:73#, no-c-formatmsgid """<![CDATA[<class name=\"Product\">\n""    <id name=\"serialNumber\" column=\"productSerialNumber\"/>\n""    <set name=\"parts\">\n""        <key column=\"productSerialNumber\" not-null=\"true\"/>\n""        <one-to-many class=\"Part\"/>\n""    </set>\n""</class>]]>"msgstr ""#. Tag: para#: collection_mapping.xml:75#, no-c-formatmsgid """Apart from <literal>&lt;set&gt;</literal>, there is also <literal>&lt;""list&gt;</literal>, <literal>&lt;map&gt;</literal>, <literal>&lt;bag&gt;</""literal>, <literal>&lt;array&gt;</literal> and <literal>&lt;primitive-""array&gt;</literal> mapping elements. The <literal>&lt;map&gt;</literal> ""element is representative:"msgstr """<literal>&lt;set&gt;</literal>과는 별도로, 또한 <literal>&lt;list&gt;</""literal>, <literal>&lt;map&gt;</literal>, <literal>&lt;bag&gt;</literal>, ""<literal>&lt;array&gt;</literal>, 그리고 <literal>&lt;map&gt;</literal> 매핑 ""요소들이 존재한다. <literal>&lt;map&gt;</literal> 요소가 대표적이다:"#. Tag: programlisting#: collection_mapping.xml:100#, no-c-formatmsgid """<![CDATA[<map\n""    name=\"propertyName\"\n""    table=\"table_name\"\n""    schema=\"schema_name\"\n""    lazy=\"true|extra|false\"\n""    inverse=\"true|false\"\n""    cascade=\"all|none|save-update|delete|all-delete-orphan|delete-orphan\"\n""    sort=\"unsorted|natural|comparatorClass\"\n""    order-by=\"column_name asc|desc\"\n""    where=\"arbitrary sql where condition\"\n""    fetch=\"join|select|subselect\"\n""    batch-size=\"N\"\n""    access=\"field|property|ClassName\"\n""    optimistic-lock=\"true|false\"\n""    mutable=\"true|false\"\n""    node=\"element-name|.\"\n""    embed-xml=\"true|false\"\n"">\n""\n""    <key .... />\n""    <map-key .... />\n""    <element .... />\n""</map>]]>"msgstr ""#. Tag: para#: collection_mapping.xml:103#, no-c-formatmsgid "<literal>name</literal> the collection property name"msgstr "<literal>name</literal> 콜렉션 프로퍼티 이름"#. Tag: para#: collection_mapping.xml:108#, no-c-formatmsgid """<literal>table</literal> (optional - defaults to property name) the name of ""the collection table (not used for one-to-many associations)"msgstr """<literal>table</literal> (옵션 - 디폴트는 프로퍼티 이름) 콜렉션 테이블의 이름""(one-to-many 연관관계들에 대해서는 사용되지 않음)"#. Tag: para#: collection_mapping.xml:114#, no-c-formatmsgid """<literal>schema</literal> (optional) the name of a table schema to override ""the schema declared on the root element"msgstr """<literal>schema</literal> (옵션) 루트 요소 상에 선언된 스키마를 오버라이드 시""키는 테이블 스키마의 이름"#. Tag: para#: collection_mapping.xml:120#, no-c-formatmsgid """<literal>lazy</literal> (optional - defaults to <literal>true</literal>) may ""be used to disable lazy fetching and specify that the association is always ""eagerly fetched, or to enable \"extra-lazy\" fetching where most operations ""do not initialize the collection (suitable for very large collections)"msgstr """<literal>lazy</literal> (옵션 - 디폴트는 <literal>true</literal>)는 lazy 페칭""을 사용 불가능하도록 하고 그 연관이 항상 eagerly 페치됨을 지정하는데 , 또는 ""대부분의 연산들이 콜렉션을 초기화시키지 않는 곳에서 \"extra-lazy\" 페칭을 이""용 가능하도록 하는데(매우 큰 콜렉션들에 적당함) 사용될 수 있다"#. Tag: para#: collection_mapping.xml:129#, no-c-formatmsgid """<literal>inverse</literal> (optional - defaults to <literal>false</literal>) ""mark this collection as the \"inverse\" end of a bidirectional association"msgstr """<literal>inverse</literal> (옵션 - 디폴트는 <literal>false</literal>) 이 콜렉""션을 양방향 연관관계의 \"inverse\" 끝(end)으로 표시한다"#. Tag: para#: collection_mapping.xml:135#, no-c-formatmsgid """<literal>cascade</literal> (optional - defaults to <literal>none</literal>) ""enable operations to cascade to child entities"msgstr """<literal>cascade</literal> (옵션 - 디폴트는 <literal>none</literal>) 오퍼레이""션들이 자식 엔티티들에 대해 케스케이드하는 것을 이용 가능하게 한다"#. Tag: para#: collection_mapping.xml:141#, no-c-formatmsgid """<literal>sort</literal> (optional) specify a sorted collection with ""<literal>natural</literal> sort order, or a given comparator class"msgstr """<literal>sort</literal> (옵션) <literal>natural</literal> 정렬 순서로 정렬된""(sorted) 콜렉션 또는 주어진 comparator 클래스를 지정한다"#. Tag: para#: collection_mapping.xml:147#, no-c-formatmsgid """<literal>order-by</literal> (optional, JDK1.4 only) specify a table column ""(or columns) that define the iteration order of the <literal>Map</literal>, ""<literal>Set</literal> or bag, together with an optional <literal>asc</""literal> or <literal>desc</literal>"msgstr """<literal>order-by</literal> (옵션, JDK1.4에서만) <literal>asc</literal> 또는 ""<literal>desc</literal> 옵션과 함께 <literal>Map</literal>, <literal>Set</""literal> 또는 bag의 반복 순서를 정의하는 테이블 컬럼(또는 컬럼들)을 지정한다"#. Tag: para#: collection_mapping.xml:154#, no-c-formatmsgid """<literal>where</literal> (optional) specify an arbitrary SQL <literal>WHERE</""literal> condition to be used when retrieving or removing the collection ""(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 ""

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -