alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Hibernate example source code file (collection_mapping.po)

This example Hibernate source code file (collection_mapping.po) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Hibernate tags/keywords

a, a, an, collection, for, hibernate, hibernate, if, sql, tag, tag, the, the, this

The Hibernate collection_mapping.po source code

msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2010-02-04T04:51:22\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
#, fuzzy, no-c-format
msgid "Collection mapping"
msgstr "콜렉션 매핑들"

#. Tag: title
#, no-c-format
msgid "Persistent collections"
msgstr "영속 콜렉션들"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Hibernate requires that persistent collection-valued fields be declared as "
"an interface type. For example:"
msgstr ""
"예를 들어 Hibernate는 영속 콜렉션-값을 가진 필드들이 인터페이스 타입으로서 선"
"언될 것을 필요로 한다:"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The actual interface might be <literal>java.util.Set, "
"<literal>java.util.Collection, java.util.List, "
"<literal>java.util.Map, java.util.SortedSet, "
"<literal>java.util.SortedMap or anything you like (\"anything you "
"like\" means you will have to write an implementation of <literal>org."
"hibernate.usertype.UserCollectionType</literal>.)"
msgstr ""
"실제 인터페이스는 <literal>java.util.Set, java.util."
"Collection</literal>, java.util.List, java.util."
"Map</literal>, java.util.SortedSet, java.util."
"SortedMap</literal> 또는 당신이 좋아하는 어떤 것일 수 있다!(여기서 \"당신이 "
"좋아하는 어떤 것\"이란 당신이 <literal>org.hibernate.usertype."
"UserCollectionType</literal>에 대한 구현을 작성해야 함을 의미한다.)"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Notice how the instance variable was initialized with an instance of "
"<literal>HashSet. 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() for "
"example, Hibernate will actually replace the <literal>HashSet with "
"an instance of Hibernate's own implementation of <literal>Set. Be "
"aware of the following errors:"
msgstr ""
"우리가 <literal>HashSet의 인스턴스를 가진 인스턴스 변수를 초기화 시"
"켰던 방법을 주목하라. 이것은 새로이 초기화 된(비-영속) 인스턴스들을 가진 콜렉"
"션 값 프로퍼티들을 초기화 시키는 최선의 방법이다. 당신이 -예를 들어 "
"<literal>persist()를 호출하여- 인스턴스를 영속화 시킬 때 Hibernate"
"는 실제로 <literal>HashSet을 Set에 대한 "
"Hibernate 자신의 구현의 인스턴스로 대체시킬 것이다. 다음과 같은 오류들을 관찰"
"하라:"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The persistent collections injected by Hibernate behave like "
"<literal>HashMap, HashSet, TreeMapTreeSet or ArrayList, "
"depending on the interface type."
msgstr ""
"Hibernate에 의해 도입된 영속 콜렉션들은 인터페이스 타입에 따라 "
"<literal>HashMap, HashSet, TreeMapTreeSet 또는 ArrayList와 같"
"이 행위한다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Collections instances have the usual behavior of value types. They are "
"automatically persisted when referenced by a persistent object and are "
"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 cannot 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
#, fuzzy, no-c-format
msgid ""
"Use persistent collections the same way you use ordinary Java collections. "
"However, please ensure you understand the semantics of bidirectional "
"associations (these are discussed later)."
msgstr ""
"당신은 이것의 어떤 것에 대해 너무 많이 걱정하지 않아도 될 것이다. 당신이 통상"
"의 자바 콜렉션들을 사용하는 것과 동일한 방법으로 영속 콜렉션들을 사용하라. 단"
"지 당신이 양방향 연관관계들에 대한 의미를 확실히 이해하도록 하라(나중에 논의"
"됨)."

#. Tag: title
#, no-c-format
msgid "Collection mappings"
msgstr "콜렉션 매핑들"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"There are quite a range of mappings that can be generated for collections "
"that cover many common relational models. We suggest you experiment with the "
"schema generation tool so that you understand how various mapping "
"declarations translate to database tables."
msgstr ""
"많은 공통된 관계형 모형들을 다루는, 콜렉션들에 대해 생성될 수 있는 매핑들의 "
"영역이 꽤 존재한다. 여러가지 매핑 선언들이 데이터베이스 테이블들로 변환되는 "
"방법을 당신이 느끼려면 스키마 생성 도구로 실험할 것을 우리는 제안한다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The Hibernate mapping element used for mapping a collection depends upon the "
"type of interface. For example, a <literal><set> element is "
"used for mapping properties of type <literal>Set."
msgstr ""
"콜렉션을 매핑하는데 사용되는 Hiberante 매핑 요소는 인터페이스의 타입에 의존한"
"다. 예를 들어<literal><set> 요소는 Set 타"
"입의 매핑 프로퍼티들에 사용된다"

#. Tag: para
#, no-c-format
msgid ""
"Apart from <literal><set>, there is also <"
"list></literal>, <map>, <bag><array> and <primitive-"
"array></literal> mapping elements. The <map> "
"element is representative:"
msgstr ""
"<literal><set>과는 별도로, 또한 <list><map>, <bag>, "
"<literal><array>, 그리고 <map> 매핑 "
"요소들이 존재한다. <literal><map> 요소가 대표적이다:"

#. Tag: para
#, fuzzy, no-c-format
msgid "<literal>name: the collection property name"
msgstr "<literal>name 콜렉션 프로퍼티 이름"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>table (optional - defaults to property name): the name of "
"the collection table. It is not used for one-to-many associations."
msgstr ""
"<literal>table (옵션 - 디폴트는 프로퍼티 이름) 콜렉션 테이블의 이름"
"(one-to-many 연관관계들에 대해서는 사용되지 않음)"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>schema (optional): the name of a table schema to override "
"the schema declared on the root element"
msgstr ""
"<literal>schema (옵션) 루트 요소 상에 선언된 스키마를 오버라이드 시"
"키는 테이블 스키마의 이름"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>lazy (optional - defaults to true): "
"disables lazy fetching and specifies that the association is always eagerly "
"fetched. It can also be used to enable \"extra-lazy\" fetching where most "
"operations do not initialize the collection. This is suitable for large "
"collections."
msgstr ""
"<literal>lazy (옵션 - 디폴트는 true)는 lazy 페칭"
"을 사용 불가능하도록 하고 그 연관이 항상 eagerly 페치됨을 지정하는데 , 또는 "
"대부분의 연산들이 콜렉션을 초기화시키지 않는 곳에서 \"extra-lazy\" 페칭을 이"
"용 가능하도록 하는데(매우 큰 콜렉션들에 적당함) 사용될 수 있다"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>inverse (optional - defaults to false (옵션 - 디폴트는 false) 이 콜렉"
"션을 양방향 연관관계의 \"inverse\" 끝(end)으로 표시한다"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>cascade (optional - defaults to none): "
"enables operations to cascade to child entities."
msgstr ""
"<literal>cascade (옵션 - 디폴트는 none) 오퍼레이"
"션들이 자식 엔티티들에 대해 케스케이드하는 것을 이용 가능하게 한다"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>sort (optional): specifies a sorted collection with "
"<literal>natural sort order or a given comparator class."
msgstr ""
"<literal>sort (옵션) natural 정렬 순서로 정렬된"
"(sorted) 콜렉션 또는 주어진 comparator 클래스를 지정한다"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>order-by (optional, JDK1.4 only): specifies a table "
"column or columns that define the iteration order of the <literal>MapSet or bag, together with an optional "
"<literal>asc or desc."
msgstr ""
"<literal>order-by (옵션, JDK1.4에서만) asc 또는 "
"<literal>desc 옵션과 함께 Map, Set (optional): specifies an arbitrary SQL "
"<literal>WHERE condition that is used when retrieving or removing "
"the collection. This is useful if the collection needs to contain only a "
"subset of the available data."
msgstr ""
"<literal>where (옵션) 콜렉션을 검색하거나 제거할 때 사용될 임의적"
"인 SQL <literal>WHERE 조건을 지정한다 (콜렉션이 오직 이용 가능한 데"
"이터의 부분집합 만을 포함할 경우에 유용하다)"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>fetch (optional, defaults to select): "
"chooses between outer-join fetching, fetching by sequential select, and "
"fetching by sequential subselect."
msgstr ""
"<literal>fetch (옵션, 디폴트는 select) outer-"
"join 페칭, sequential select 페칭, 그리고 sequential subselect 페칭 사이에서 "
"선택하라."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>batch-size (optional, defaults to 1): "
"specifies a \"batch size\" for lazily fetching instances of this collection."
msgstr ""
"<literal>batch-size (옵션, 디폴트는 1) 이 콜렉션"
"의 lazily fetching 인스턴스에 대해 \"배치 사이즈\"를 지정하라."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>access (optional - defaults to property (옵션 - 디폴트는 property): "
"Hibernate가 콜렉션 프로퍼티 값에 접근하는데 사용할 방도."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>optimistic-lock (optional - defaults to true (옵션 - 디폴트는 true (optional - defaults to true): "
"a value of <literal>false specifies that the elements of the "
"collection never change. This allows for minor performance optimization in "
"some cases."
msgstr ""
"<literal>mutable (옵션 - 디폴트는 true): "
"<literal>false 값은 콜렉션의 요소들이 결코 변경되지 않음을 지정한"
"다. (몇몇 경우들에서 마이너 퍼포먼스 최적화)."

#. Tag: title
#, no-c-format
msgid "Collection foreign keys"
msgstr "콜렉션 foreign 키들"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"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, or columns, of the collection "
"table. The collection key column is mapped by the <literal><key> 요소에 의해 매핑된다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"There can 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 may need to specify "
"<literal>not-null=\"true\"."
msgstr ""
"foreign 키 컬럼에 대한 null 허용 가능 컨스트레인트가 존재할 수 있다. 대부분"
"의 콜렉션들에 대해, 이것이 당연히 수반된다. 단방향 one to many 연관들의 경"
"우, foreign 키는 디폴트로 null 허용 가능하여서, 당신은 <literal>not-null="
"\"true\"</literal>를 지정할 필요가 있을 수 있다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The foreign key constraint can use <literal>ON DELETE CASCADE."
msgstr ""
"foreign 키 컨스트레인트는 <literal>ON DELETE CASCADE를 사용할 수도 "
"있다."

#. Tag: para
#, no-c-format
msgid ""
"See the previous chapter for a full definition of the <literal><key> 요소에 대한 전체 정의는 앞 장을 보라."

#. Tag: title
#, no-c-format
msgid "Collection elements"
msgstr "콜렉션 요소들"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Collections can contain almost any other Hibernate type, including: basic "
"types, custom types, components and 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 a "
"state held by the collection."
msgstr ""
"콜렉션들은 모든 기본 타입들, 컴포넌트들, 그리고 물론 다른 엔티티들에 대한 참"
"조들을 포함하여 거의 대부분의 어떤 다른 Hibernate 타입을 포함할 수도 있다. 이"
"것은 중요한 구분이다: 콜렉션 내에 있는 객체는 \"값(value)\" 의미로 처리될 수"
"도 있거나(그것의 생명주기는 콜렉션 소유자에 의존한다) 그것은 그것 자신의 생명"
"주기를 가진 또 다른 엔티티에 대한 참조일 수 있다. 후자의 경우, 두 개의 객체"
"들 사이의 \"링크\" 만이 그 콜렉션에 의해 소유된 상태로 간주된다."

#. Tag: para
#, no-c-format
msgid ""
"The contained type is referred to as the <emphasis>collection element type<element><composite-element>, or in the case of "
"entity references, with <literal><one-to-many> or "
"<literal><many-to-many>. The first two map elements with "
"value semantics, the next two are used to map entity associations."
msgstr ""
"포함된 타입은 콜렉션 요소 타입으로서 불려진다. 콜렉션 요소들은 <literal><"
"element></literal> 또는 <composite-element>에 의"
"해 매핑되거나, 엔티티 참조들의 경우에 <literal><one-to-many> "
"또는 <literal><many-to-many>로서 매핑된다. 앞의 두 개는 "
"value 의미를 가진 요소들을 매핑시키고, 뒤의 두개는 엔티티 연관들을 매핑하는"
"데 사용된다."

#. Tag: title
#, no-c-format
msgid "Indexed collections"
msgstr "인덱싱 된 콜렉션들"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"All collection mappings, except those with set and bag semantics, need an "
"<emphasis>index column in the collection table. An index column "
"is a column that maps to an array index, or <literal>List index, "
"or <literal>Map key. The index of a Map may be "
"of any basic type, mapped with <literal><map-key>. It can be "
"an entity reference mapped with <literal><map-key-many-to-many><composite-"
"map-key></literal>. The index of an array or list is always of type "
"<literal>integer and is mapped using the <list-"
"index></literal> element. The mapped column contains sequential integers "
"that are numbered from zero by default."
msgstr ""
"set 과 bag 의미들을 가진 것들을 제외하면, 모든 콜렉션 매핑들은 콜렉션 테이블 "
"내에 <emphasis>인덱스 컬럼- 배열 인덱스, 또는 ListMap 키로 매핑되는 컬럼-을 필요로 한"
"다. <literal>Map의 인덱스는 <map-key>로 매"
"핑된, 어떤 기본 타입일 수 있고, 그것은 <literal><map-key-many-to-many>"
"</literal>로 매핑된 엔티티 참조일 수 있거나, 그것은 <composite-"
"map-key></literal>로 매핑된 composite 타입일 수 있다. 배열 또는 리스트의 "
"인덱스는 항상 <literal>integer 타입이고 <list-index>"
"</literal> 요소를 사용하여 매핑된다. 매핑된 컬럼은 순차적인 정수들을 포함한다"
"(디폴트로 0에서 시작하는 번호가 붙여짐)."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>column_name (required): the name of the column holding "
"the collection index values."
msgstr ""
"<literal>column_name (필수): 콜렉션 인덱스 값들을 보관하는 컬럼의 "
"이름."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>base (optional - defaults to 0): the "
"value of the index column that corresponds to the first element of the list "
"or array."
msgstr ""
"<literal>base (옵션, 디폴트는 0): 리스트 또는 배"
"열의 첫 번째 요소에 대응하는 인덱스 컬럼의 값."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>column (optional): the name of the column holding the "
"collection index values."
msgstr ""
"<literal>column (옵션): 콜렉션 인덱스 값들을 보관하는 컬럼의 이름."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>formula (optional): a SQL formula used to evaluate the "
"key of the map."
msgstr ""
"<literal>formula (옵션): map의 키를 평가하는데 사용되는 SQL "
"formula."

#. Tag: para
#, fuzzy, no-c-format
msgid "<literal>type (required): the type of the map keys."
msgstr "<literal>type (필수): The type of the map 키들의 타입"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>column (optional): the name of the foreign key column for "
"the collection index values."
msgstr ""
"<literal>column (옵션): 콜렉션 인덱스 값들에 대한 foreign 키 컬럼"
"의 이름."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>formula (optional): a SQ formula used to evaluate the "
"foreign key of the map key."
msgstr ""
"<literal>formula (옵션): map의 foreign 키를 평가하는데 사용되는 "
"SQL formula."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>class (required): the entity class used as the map key."
msgstr "<literal>class (필수): map 키로서 사용되는 엔티티 클래스."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"If your table does not have an index column, and you still wish to use "
"<literal>List as the property type, you can map the property as a "
"Hibernate <emphasis><bag>. A bag does not retain its order "
"when it is retrieved from the database, but it can be optionally sorted or "
"ordered."
msgstr ""
"만일 당신의 테이블이 인덱스 컬럼을 가지 않고, 당신이 여전히 프로퍼티 타입으로"
"서 <literal>List를 사용하고자 원할 경우, 당신은 그 프로퍼티를 "
"Hibernate <emphasis><bag>으로서 매핑해야 한다. bag이 데이터"
"베이스로부터 검색될 때 그것은 그것의 순서를 보유하지 않지만, 그것은 선택적으"
"로 정렬(sorting)되거나 ordering될 수도 있다."

#. Tag: title
#, no-c-format
msgid "Collections of values and many-to-many associations"
msgstr "값들을 가진 콜렉션들과 many-to-many 연관들"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Any collection of values or many-to-many associations requires a dedicated "
"<emphasis>collection table with a foreign key column or columns, "
"<emphasis>collection element column or columns, and possibly an "
"index column or columns."
msgstr ""
"어떤 값들을 가진 콜렉션 또는 many-to-many 연관은 foreign 키 컬럼이나 컬럼들, "
"<emphasis>콜렉션 요소 컬럼이나 컬럼들 그리고 가능하면 인덱스 컬럼"
"들이나 컬럼들을 가진 전용 <emphasis>콜렉션 테이블을 필요로 한다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"For a collection of values use the <literal><element> tag. "
"For example:"
msgstr ""
"값들을 가진 콜렉션의 경우, 우리는 <literal><element> 태그를 "
"사용한다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>column (optional): the name of the column holding the "
"collection element values."
msgstr ""
"<literal>column (옵션): 콜렉션 요소 값들을 소유하는 컬럼의 이름."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>formula (optional): an SQL formula used to evaluate the "
"element."
msgstr ""
"<literal>formula (옵션): 요소를 평가하는데 사용되는 SQL formula."

#. Tag: para
#, fuzzy, no-c-format
msgid "<literal>type (required): the type of the collection element."
msgstr "<literal>type (필수): 콜렉션 요소의 타입."

#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>many-to-many association is specified using the "
"<literal><many-to-many> element."
msgstr ""
"<emphasis>many-to-many association 연관은 <many-to-"
"many></literal> 요소를 사용하여 지정된다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>column (optional): the name of the element foreign key "
"column."
msgstr "<literal>column (옵션): 요소 foreign 키 컬럼의 이름."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>formula (optional): an SQL formula used to evaluate the "
"element foreign key value."
msgstr ""
"<literal>formula (옵션): 요소 foreign 키 값을 평가하는데 사용되는 "
"SQL formula."

#. Tag: para
#, fuzzy, no-c-format
msgid "<literal>class (required): the name of the associated class."
msgstr "<literal>class (필수): 연관된 클래스의 이름."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>fetch (optional - defaults to join): "
"enables outer-join or sequential select fetching for this association. This "
"is a special case; for full eager fetching in a single <literal>SELECT fetching,not only of the collection "
"itself, but also with this attribute on the <literal><many-to-many> (옵션 - 디폴트는 join): 이 연관"
"에 대해 outer-join 페칭 또는 sequential select 페칭을 이용 가능하게 만든다. "
"이것은 특별한 경우이다; 엔티티 그리고 다른 엔티티들과 그것의 many-to-many 관"
"계들에 대한 (하나의 <literal>SELECT 내에서) 전체 eager 페칭의 경"
"우, 당신은 콜렉션 그 자체에 대해서 뿐만 아니라 내포된 요소 <literal><many-"
"to-many></literal> 상의 이 속성에 대해 join 페칭을 이"
"용 가능하게 할 것이다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>unique (optional): enables the DDL generation of a unique "
"constraint for the foreign-key column. This makes the association "
"multiplicity effectively one-to-many."
msgstr ""
"<literal>unique (옵션): foreign-key 컬럼에 대한 유일 컨스트레인트"
"의 DDL 생성을 가능하도록 한다. 이것은 연관 다중성 (association multiplicity)"
"을 효율적으로 one to many로 만든다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>not-found (optional - defaults to exception will treat a missing row as a null "
"association."
msgstr ""
"<literal>not-found (옵션 - 디폴트는 exception): "
"누락된 행들을 참조하는 foreign 키들이 어떻게 처리될 것인지를 지정한다: "
"<literal>ignore는 누락된 한 행을 한 개의 연관으로 다룰 것이다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>entity-name (optional): the entity name of the associated "
"class, as an alternative to <literal>class."
msgstr ""
"#-#-#-#-#  - (PACKAGE VERSION)  #-#-#-#-#\n"
"<literal>entity-name (옵션): class에 대한 하나"
"의 대안으로서, 연관된 클래스의 엔티티 이름.\n"
"#-#-#-#-#  - (PACKAGE VERSION)  #-#-#-#-#\n"
"<literal>entity-name (옵션): class에 대한 대안으"
"로서, 연관된 클래스의 엔티티 이름."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>property-ref (optional): the name of a property of the "
"associated class that is joined to this foreign key. If not specified, the "
"primary key of the associated class is used."
msgstr ""
"<literal>property-ref: (옵션) 이 foreign 키에 조인된 연관 클래스의 "
"프로퍼티의 이름. 지정되지 않을 경우, 연관 클래스의 프라이머리 키가 사용된다."

#. Tag: para
#, no-c-format
msgid "Here are some examples."
msgstr ""

#. Tag: para
#, no-c-format
msgid "A set of strings:"
msgstr ""

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"A bag containing integers with an iteration order determined by the "
"<literal>order-by attribute:"
msgstr ""
"(<literal>order-by 속성에 의해 결정되는 반복 순서를 가진) 정수들을 "
"포함하는 bag :"

#. Tag: para
#, fuzzy, no-c-format
msgid "An array of entities, in this case, a many-to-many association:"
msgstr "엔티티들을 가진 배열 - 이 경우에, many to many 연관 :"

#. Tag: para
#, no-c-format
msgid "A map from string indices to dates:"
msgstr "날짜들에 대한 문자열 인덱스들을 가진 map :"

#. Tag: para
#, fuzzy, no-c-format
msgid "A list of components (this is discussed in the next chapter):"
msgstr "컴포넌트들의 리스트(다음 장에서 논의됨):"

#. Tag: title
#, no-c-format
msgid "One-to-many associations"
msgstr "One-to-many 연관들"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"A <emphasis>one-to-many association links the tables of two "
"classes via a foreign key with no intervening collection table. This mapping "
"loses certain semantics of normal Java collections:"
msgstr ""
"<emphasis>one to many 연관은 중재하는 콜렉션 테이블 없이 foreign "
"키를 통해 두 개의 클래스들의 테이블들을 연결시킨다. 이 매핑은 통상의 자바 콜"
"렉션들의 어떤 의미를 상실한다:"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"An instance of the contained entity class cannot belong to more than one "
"instance of the collection."
msgstr ""
"포함된 엔티티 클래스의 인스턴스는 그 콜렉션의 하나 이상의 인스턴스에 속하지 "
"않을 수 있다"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"An instance of the contained entity class cannot appear at more than one "
"value of the collection index."
msgstr ""
"포함된 엔티티 클래스의 인스턴스는 콜렉션 인덱스의 하나 이상의 값에서 나타나"
"지 않을 수 있다"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"An association from <literal>Product to Part "
"requires the existence of a foreign key column and possibly an index column "
"to the <literal>Part table. A <one-to-many>로부터 Part로의 연관은 foreign "
"키 컬럼과 <literal>Part 테이블에 대한 인덱스 컬럼의 존재를 필요로 "
"한다. <literal><one-to-many> 태그는 이것이 one to many 연관임"
"을 나타낸다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"<literal>not-found (optional - defaults to exception will treat a missing row as a null "
"association."
msgstr ""
"<literal>not-found (옵션 - 디폴트는 exception): "
"누락된 행들을 참조하는 캐시된 식별자들이 어떻게 처리될 것인지를 지정한다: "
"<literal>ignore는 누락된 한 행을 한 개의 연관으로 다룰 것이다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The <literal><one-to-many> element does not need to declare "
"any columns. Nor is it necessary to specify the <literal>table "
"name anywhere."
msgstr ""
"<literal><one-to-many> 요소는 어떤 컬럼들을 선언하는데 필요하"
"지 않음을 주목하라. 어딘가에 <literal>table 이름을 지정하는 것도 필"
"수적이지 않다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"If the foreign key column of a <literal><one-to-many> "
"association is declared <literal>NOT NULL, you must declare the "
"<literal><key> mapping not-null=\"true\" "
"or <emphasis>use a bidirectional association with the collection "
"mapping marked <literal>inverse=\"true\". See the discussion of "
"bidirectional associations later in this chapter for more information."
msgstr ""
"<emphasis>매우 중요한 노트: 만일 <one-to-many>NOT NULL로 선언될 경우, "
"당신은 <literal><key> 매핑을 not-null=\"true\"inverse=\"true\"로 마크된 콜렉"
"션 매핑을 가진 <emphasis>양방향 연관을 사용해야 한다. 양방향 연관"
"들에 대한 논의는 이 장의 뒷부분을 보라."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The following example shows a map of <literal>Part entities by "
"name, where <literal>partName is a persistent property of "
"<literal>Part. Notice the use of a formula-based index:"
msgstr ""
"이 예제는 name으로 <literal>Part 엔티티들을 가진 map을 보여준다(여"
"기서 <literal>partName은 Part의 영속 프로퍼티이"
"다). formula-기반 index의 사용을 주목하라."

#. Tag: title
#, no-c-format
msgid "Advanced collection mappings"
msgstr "개선된 콜렉션 매핑들"

#. Tag: title
#, no-c-format
msgid "Sorted collections"
msgstr "Sorted 콜렉션들"

#. Tag: para
#, no-c-format
msgid ""
"Hibernate supports collections implementing <literal>java.util.SortedMapjava.util.SortedSet. You must specify a "
"comparator in the mapping file:"
msgstr ""
"Hibernate는 <literal>java.util.SortedMap과 java.util."
"SortedSet</literal>를 구현하는 콜렉션들을 지원한다. 당신은 매핑 파일 속에 하"
"나의 comparator를 지정해야 한다:"

#. Tag: para
#, no-c-format
msgid ""
"Allowed values of the <literal>sort attribute are "
"<literal>unsorted, natural and the name of a "
"class implementing <literal>java.util.Comparator."
msgstr ""
"<literal>sort 속성에 허용되는 값들은 unsorted, "
"<literal>natural, 그리고 java.util.Comparator를 "
"구현하는 클래스의 이름이다."

#. Tag: para
#, no-c-format
msgid ""
"Sorted collections actually behave like <literal>java.util.TreeSet "
"or <literal>java.util.TreeMap."
msgstr ""
"Sorted 콜렉션들은 <literal>java.util.TreeSet 또는 java."
"util.TreeMap</literal>처럼 행동한다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"If you want the database itself to order the collection elements, use the "
"<literal>order-by attribute of set, "
"<literal>bag or map mappings. This solution is "
"only available under JDK 1.4 or higher and is implemented using "
"<literal>LinkedHashSet or LinkedHashMap. This "
"performs the ordering in the SQL query and not in the memory."
msgstr ""
"만일 당신이 데이터베이스 그 자체가 콜렉션 요소들을 순서지우도록(order)원할 경"
"우 <literal>set, bag 또는map "
"매핑들에 대해 <literal>order-by 속성을 사용하라. 이 해결책은 JDK "
"1.4 이상의 버전에서만 이용 가능하다(그것은 <literal>LinkedHashSet "
"또는 <literal>LinkedHashMap을 사용하여 구현된다). 이것은 메모리 내"
"가 아닌, SQL 질의 내에서 순서지움(ordering)을 수행한다."

#. Tag: title
#, no-c-format
msgid "Note"
msgstr ""

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The value of the <literal>order-by attribute is an SQL ordering, "
"not an HQL ordering."
msgstr ""
"<literal>order-by 속성의 값은 HQL 순서지움(ordering)이 아니라 SQL "
"순서지움(ordering)임을 노트하라!"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Associations can even be sorted by arbitrary criteria at runtime using a "
"collection <literal>filter():"
msgstr ""
"연관들은 콜렉션 <literal>filter()를 사용하여 실행 시에 어떤 임의의 "
"criteria(기준)을 사용하여 정렬(sort)될 수도 있다."

#. Tag: title
#, no-c-format
msgid "Bidirectional associations"
msgstr "양방향 연관들"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"A <emphasis>bidirectional association allows navigation from both "
"\"ends\" of the association. Two kinds of bidirectional association are "
"supported:"
msgstr ""
"<emphasis>양방향 연관은 연관의 양 \"끝(end)들\"로부터 네비게이션"
"을 허용한다. 두 가지 종류의 양방향 연관들이 지원된다: <placeholder-1/>"

#. Tag: term
#, no-c-format
msgid "one-to-many"
msgstr "one-to-many"

#. Tag: para
#, fuzzy, no-c-format
msgid "set or bag valued at one end and single-valued at the other"
msgstr "한쪽 끝에 set 또는 bag 값을 갖고, 다른 쪽 긑에 단일 값을 가진 연관"

#. Tag: term
#, no-c-format
msgid "many-to-many"
msgstr "many-to-many"

#. Tag: para
#, no-c-format
msgid "set or bag valued at both ends"
msgstr "양 끝에서 set 또는 bag 값을 가진 연관"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"You can specify a bidirectional many-to-many association by mapping two many-"
"to-many associations to the same database table and declaring one end as "
"<emphasis>inverse. You cannot select an indexed collection."
msgstr ""
"당신은 동일한 두 개의 many-to-many 연관들을 동일한 데이터베이스 테이블로 간단"
"하게 매핑하고 한 쪽 끝을 <emphasis>inverse(당신의 선택은 하나이지"
"만, 그것은 인덱싱된 콜렉션일 수 없다)로 선언함으로써 하나의 양방향 many-to-"
"many 연관을 지정할 수도 있다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Here is an example of a bidirectional many-to-many association that "
"illustrates how each category can have many items and each item can be in "
"many categories:"
msgstr ""
"다음은 양방향 many-to-many 연관에 관한 예제이다; 각각의 카테고리는 많은 아이"
"템들을 가질 수 있고 각각의 아이템은 많은 카테고리들 속에 있을 수 있다:"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Changes made only to the inverse end of the association are <emphasis>not."
msgstr ""
"당신은 하나의 one-to-many 연관을 하나의 many-to-one 연관으로서 동일한 테이블 "
"컬럼(들)로 매핑하고 many-값을 가진 끝(end)을 <literal>inverse=\"true\" "
"does not affect the operation of cascades as these are orthogonal concepts."
msgstr ""
"연관의 한쪽 끝을 <literal>inverse=\"true\"로 매핑하는 것은 cascade"
"들을 가진 오퍼레이션에 영향을 주지 않으며, 이것들은 orthogonal(직교) 개념들이"
"다!"

#. Tag: title
#, no-c-format
msgid "Bidirectional associations with indexed collections"
msgstr "인덱싱된 콜렉션들을 가진 양방향 연관들"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"A bidirectional association where one end is represented as a <literal><"
"list></literal> or <map>, requires special "
"consideration. If there is a property of the child class that maps to the "
"index column you can use <literal>inverse=\"true\" on the "
"collection mapping:"
msgstr ""
"한쪽 끝이 하나의 <literal><list> 또는 <map>를 사용하여 계속할 수 "
"있다:"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"If there is no such property on the child class, the association cannot be "
"considered truly bidirectional. That is, there is information available at "
"one end of the association that is not available at the other end. In this "
"case, you cannot map the collection <literal>inverse=\"true\". "
"Instead, you could use the following mapping:"
msgstr ""
"그러나 만일 child 클래스 상에 그런 프로퍼티가 존재하지 않을 경우, 우리는 그 "
"연관을 진정하게 양방향으로 간주할 수 없다 (다른 쪽 끝에서 이용가능하지 않은 "
"그 연관의 끝에서 이용 가능한 정보가 존재한다). 이 경우에 우리는 그 콜렉션을 "
"<literal>inverse=\"true\"로 매핑시킬 수 없다. 대신에 우리는 다음 매"
"핑을 사용할 수 있다:"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Note that in this mapping, the collection-valued end of the association is "
"responsible for updates to the foreign key."
msgstr ""
"이 매핑에서 그 연관의 콜렉션 값을 가진 끝이 foreign 키에 대한 업데이트 책임"
"이 있음을 노트하라."

#. Tag: title
#, no-c-format
msgid "Ternary associations"
msgstr "Ternary associations(세겹 연관들)"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"There are three possible approaches to mapping a ternary association. One "
"approach is to use a <literal>Map with an association as its index:"
msgstr ""
"세 겹의 연관을 매핑하는 세 가지 가능한 접근법들이 존재한다. 하나의 접근법은 "
"그것의 인덱스로서 연관관계를 가진 <literal>Map을 사용하는 것이다:"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"A second approach is to remodel the association as an entity class. This is "
"the most common approach."
msgstr ""
"두 번째 접근법은 그 연관을 엔티티 클래스로서 단순하게 리모델링 하는 것이다. "
"이것은 우리가 가장 공통적으로 사용하는 접근법이다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"A final alternative is to use composite elements, which will be discussed "
"later."
msgstr ""
"마지막 대안은 우리가 나중에 논의하게 될 composite 요??들을 사용하는 것이다."

#. Tag: title
#, fuzzy, no-c-format
msgid "<literal>Using an <idbag>"
msgstr "<literal><idbag> 사용하기"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The majority of the many-to-many associations and collections of values "
"shown previously all map to tables with composite keys, even though it has "
"been have suggested that entities should have synthetic identifiers "
"(surrogate keys). A pure association table does not seem to benefit much "
"from a surrogate key, although a collection of composite values "
"<emphasis>might. It is for this reason that Hibernate provides a "
"feature that allows you to map many-to-many associations and collections of "
"values to a table with a surrogate key."
msgstr ""
"만일 당신이 composite 키들이 나쁜 것이고 엔티티들이 합성 식별자들(대용 키들, "
"surrogate keys)을 가져야 한다는 우리의 견해를 전적으로 수용할 경우, 당신은 우"
"리가 지금까지 보여주었던 값들을 가진 콜렉션들과 many to many 연관들이 모두 "
"composite 키들을 가진 테이블들로 매핑된다는 약간 이상한 점을 발견할 수도 있"
"다! 이제 이 점은 꽤 논의의 여지가 있다; 순수한 연관 테이블은 (비록 composite "
"값들을 가진 콜렉션<emphasis>일 수도 있을지라도) 대용 키로부터 많"
"은 이점을 취하지 않는 것처럼 보인다. 그럼에도 불구하고 Hibernate는 당신이 값"
"들을 가진 콜렉션들과 many to many 연관들을 대용 키를 가진 테이블로 매핑시키"
"는 것을 당신에게 허용해주는 특징을 제공한다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The <literal><idbag> element lets you map a ListCollection) with bag semantics. For example:"
msgstr ""
"<literal><idbag> 요소는 bag 의미를 가진 ListCollection)을 매핑하도록 당신에게 허용해준"
"다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"An <literal><idbag> has a synthetic id generator, just like "
"an entity class. A different surrogate key is assigned to each collection "
"row. Hibernate does not, however, provide any mechanism for discovering the "
"surrogate key value of a particular row."
msgstr ""
"당신이 볼 수 있듯이, <literal><idbag>은 마치 엔티티 클래스인"
"양 synthetic id generator(합성 id 생성기)를 갖는다! 다른 대용 키는 각각의 콜"
"렉션 행에 할당된다. 하지만 Hibernate는 특정 행의 대용 키 값을 발견하는 메커니"
"즘을 제공하지 않는다."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The update performance of an <literal><idbag> supersedes a "
"regular <literal><bag>. Hibernate can locate individual rows "
"efficiently and update or delete them individually, similar to a list, map "
"or set."
msgstr ""
"<literal><idbag>의 업데이트 퍼포먼스는 정규 <"
"bag></literal> 보다 훨씬 좋다는 점을 노트하라! Hibernate는 마치 list, "
"map, 또는 set인양, 개별 행들을 효율적으로 위치지울 수 있고 그것들을 개별적으"
"로 업데이트 하거나 삭제시킬 수 있다."

#. Tag: para
#, no-c-format
msgid ""
"In the current implementation, the <literal>native identifier "
"generation strategy is not supported for <literal><idbag> "
"collection identifiers."
msgstr ""
"현재 구현에서, <literal>native 식별자 생성 방도는 <"
"idbag></literal> 콜렉션 식별자들에 대해 지원되지 않는다."

#. Tag: title
#, no-c-format
msgid "Collection examples"
msgstr "콜렉션 예제들"

#. Tag: para
#, fuzzy, no-c-format
msgid "This section covers collection examples."
msgstr "콜렉션 예제들"

#. Tag: para
#, no-c-format
msgid ""
"The following class has a collection of <literal>Child instances:"
msgstr ""

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"If each child has, at most, one parent, the most natural mapping is a one-to-"
"many association:"
msgstr ""
"는 <literal>Child 인스턴스들을 가진 하나의 콜렉션을 갖고 있다. 만"
"일 각각의 자식이 최소한 한 개의 부모를 가질 경우, 대부분의 고유한 매핑은 one-"
"to-many 연관이다:"

#. Tag: para
#, no-c-format
msgid "This maps to the following table definitions:"
msgstr "이것은 다음 테이블 정의들로 매핑된다:"

#. Tag: para
#, no-c-format
msgid ""
"If the parent is <emphasis>required, use a bidirectional one-to-"
"many association:"
msgstr ""
"만일 부모가 <emphasis>필수적이라면, 양방향 one-to-many 연관관계를 "
"사용하라:"

#. Tag: para
#, no-c-format
msgid "Notice the <literal>NOT NULL constraint:"
msgstr "<literal>NOT NULL 컨스트레인트를 주목하라:"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Alternatively, if this association must be unidirectional you can declare "
"the <literal>NOT NULL constraint on the <key> 매핑 상에 NOT NULL

Other Hibernate examples (source code examples)

Here is a short list of links related to this Hibernate collection_mapping.po source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.