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

Hibernate example source code file (association_mapping.po)

This example Hibernate source code file (association_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, accountinfo, address, address, cdata, cdata, hibernate, in, person, person, personaddress, tag, tag, the

The Hibernate association_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:21\n"
"PO-Revision-Date: 2010-01-12 20:59+0900\n"
"Last-Translator: Jongdae Kim <jdkim528@korea.com>\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
#, no-c-format
msgid "Association Mappings"
msgstr "연관 매핑들"

#. Tag: title
#, no-c-format
msgid "Introduction"
msgstr "개요"

#. Tag: para
#, no-c-format
msgid ""
"Association mappings are often the most difficult thing to implement "
"correctly. In this section we examine some canonical cases one by one, "
"starting with unidirectional mappings and then bidirectional cases. We will "
"use <literal>Person and Address in all the "
"examples."
msgstr ""
"연관 매핑들은 종종 정확하게 구현하는 것이 가장 어려운 것이다. 이 절에서 우리"
"는 단방향 매핑들에서 시작하여, 양방향 매핑의 경우까지 하나씩 몇몇 정규적인 경"
"우들을 논의할 것이다. 우리는 모든 예제들에서 <literal>Person과 "
"<literal>Address를 사용할 것이다."

#. Tag: para
#, no-c-format
msgid ""
"Associations will be classified by multiplicity and whether or not they map "
"to an intervening join table."
msgstr ""
"연관들은 다가성 그리고 중재하는 join 테이블로 매핑시킬 것인지 여부에 따라 분"
"류될 것이다."

#. Tag: para
#, no-c-format
msgid ""
"Nullable foreign keys are not considered to be good practice in traditional "
"data modelling, so our examples do not use nullable foreign keys. This is "
"not a requirement of Hibernate, and the mappings will work if you drop the "
"nullability constraints."
msgstr ""
"널값이 허용되는 외래 키들은 전통적인 데이터 모델링에서 좋은 사례로 간주되지 "
"않으므로, 우리의 예제들은 널 값이 허용되는 외래 키들을 사용하지 않는다. 이것"
"은 하이버네이트의 사양이 아니며, 당신이 널 허용 컨스트레인트들을 드롭시킬 경"
"우에 매핑들이 동작할 것이다."

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

#. Tag: title
#, no-c-format
msgid "Many-to-one"
msgstr "다-대-일"

#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>unidirectional many-to-one association is the most "
"common kind of unidirectional association."
msgstr ""
"<emphasis>단방향 many-to-one 연관은 가장 공통적인 종류의 단방향 연"
"관이다."

#. Tag: title
#, no-c-format
msgid "One-to-one"
msgstr "일-대-일"

#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-one association on a foreign key은 대개 특별한 "
"id 생성자를 사용한다. 하지만 이 예제에서 우리는 연관의 방향을 역전시켰다:"

#. Tag: title
#, no-c-format
msgid "One-to-many"
msgstr "일-대-다 "

#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-many association on a foreign key은 색다른 경우이며, "
"권장되지 않는다."

#. Tag: para
#, no-c-format
msgid "You should instead use a join table for this kind of association."
msgstr ""
"대신에 당신은 이런 종류의 연관에 대해 하나의 join 테이블을 사용해야 한다."

#. Tag: title
#, no-c-format
msgid "Unidirectional associations with join tables"
msgstr "join 테이블들에 대한 단방향 연관들"

#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-many association on a join tableunique=\"true\"은 선호되는 옵션"
"이다. <literal>unique=\"true\"를 지정하여, 다-대-다에서 일-대-다로 "
"다중값을 변경시켜라."

#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>unidirectional many-to-one association on a join table은 그 연관이 선택"
"적일 때 공통적이다. 예를 들면:"

#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-one association on a join table "
"is possible, but extremely unusual."
msgstr ""
"<emphasis>join 테이블에 대한 단방향 일-대-일 연관은 가능하지만, 극"
"히 통상적이지 않다."

#. Tag: title
#, no-c-format
msgid "Many-to-many"
msgstr "다-대-다"

#. Tag: para
#, no-c-format
msgid ""
"Finally, here is an example of a <emphasis>unidirectional many-to-many "
"association</emphasis>."
msgstr ""
"마지막으로, 다음은 <emphasis>단방향 다-대-다 연관에 대한 예제이다."

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

#. Tag: title
#, no-c-format
msgid "one-to-many / many-to-one"
msgstr "일-대-다 / 다-대-일"

#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>bidirectional many-to-one association is the most "
"common kind of association. The following example illustrates the standard "
"parent/child relationship."
msgstr ""
"<emphasis>양방향 다-대-일 연관은 가장 공통된 종류의 연관이다. 다"
"음 예제는 표준 부모/자식 관계를 설명한다."

#. Tag: para
#, no-c-format
msgid ""
"If you use a <literal>List, or other indexed collection, set the "
"<literal>key column of the foreign key to not null and insert=\"false"
"\"</literal>:"
msgstr ""
"만일 당신이 <literal>List, 또는 다른 인덱싱 된 콜렉션을 사용할 경"
"우, 외래 키의 <literal>key 컬럼을 not null로 설"
"정하라. 하이버네이트는 각각의 요소의 인덱스를 관리하기 위해 <literal>update="
"\"false\"</literal>와 insert=\"false\"를 설정하여 다른 측"
"을 가상적으로 역행시킴으로서 콜렉션들 측에서 그 연관을 관리할 것이다:"

#. Tag: para
#, no-c-format
msgid ""
"If the underlying foreign key column is <literal>NOT NULL, it is "
"important that you define <literal>not-null=\"true\" on the "
"<literal><key> element of the collection mapping. Do not "
"only declare <literal>not-null=\"true\" on a possible nested "
"<literal><column> element, but on the <key>일 경우, 당신이 콜렉션 매"
"핑의 <literal><key>not-null=\"true\"를 "
"정의하는 것이 중요하다. <literal>not-null=\"true\"를  가능한 내포"
"된 <literal><column> 요소 뿐만 아니라, <key> "
"is common:"
msgstr "<emphasis>외래 키에 대한 양방향일-대-일 연관은 공통적이다:"

#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a primary key "
"uses the special id generator:"
msgstr ""
"<emphasis>프라이머리 키에 대한 양방향 일-대-일 연관은 특별한 id 생"
"성자를 사용한다:"

#. Tag: title
#, no-c-format
msgid "Bidirectional associations with join tables"
msgstr "join 테이블들에 대한 양방향 연관들"

#. Tag: para
#, no-c-format
msgid ""
"The following is an example of a <emphasis>bidirectional one-to-many "
"association on a join table</emphasis>. The inverse=\"true\"에 대한 예"
"제이다. <literal>inverse=\"true\"는 연관의 어느 측이든지, 콜렉션 측"
"에도, 또는 join 측에도 쓸 수 있다."

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

#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a join table "
"is possible, but extremely unusual."
msgstr ""
"<emphasis>join 테이블에 대한 양방향 일-대-일 연관이 가능하지만, 극"
"히 통상적이지 않다."

#. Tag: para
#, no-c-format
msgid ""
"Here is an example of a <emphasis>bidirectional many-to-many association에 대한 예제이다."

#. Tag: title
#, no-c-format
msgid "More complex association mappings"
msgstr "보다 복잡한 연관 매핑들"

#. Tag: para
#, no-c-format
msgid ""
"More complex association joins are <emphasis>extremely rare. "
"Hibernate handles more complex situations by using SQL fragments embedded in "
"the mapping document. For example, if a table with historical account "
"information data defines <literal>accountNumber, "
"<literal>effectiveEndDate and effectiveStartDate 드물다. 하이버네이트는 매"
"핑 문서들 내에 삽입된 SQL 조각들을 사용하여 보다 복잡한 상황들을 처리한다. 예"
"를 들어, 만일 계좌 내역 정보 데이터를 가진 테이블이 <literal>accountNumbereffectiveEndDate 그리고 "
"<literal>effectiveStartDate 컬럼들을 정의하고 있다면, 그것은 다음"
"과 같이 매핑될 것이다:"

#. Tag: para
#, no-c-format
msgid ""
"You can then map an association to the <emphasis>current "
"instance, the one with null <literal>effectiveEndDate, by using:"
msgstr ""
"그때 당신은 다음을 사용하여 하나의 연관을 널이 허용되는 "
"<literal>effectiveEndDate를 가진, current 인스"
"턴스에 매핑시킬 수 있다:"

#. Tag: para
#, no-c-format
msgid ""
"In a more complex example, imagine that the association between "
"<literal>Employee and Organization is "
"maintained in an <literal>Employment table full of historical "
"employment data. An association to the employee's <emphasis>most recentstartDateOrganizationEmployment가장 최근의startDate를 가"
"진 연관이 다음 방법으로 매핑될 수 있다:"

#. Tag: para
#, no-c-format
msgid ""
"This functionality allows a degree of creativity and flexibility, but it is "
"more practical to handle these kinds of cases using HQL or a criteria query."
msgstr ""
"이 기능은 생산성과 유연성 제고를 허용하지만, HQL이나 criteria 질의를 사용하"
"여 이들 종류의 경우들을 처리하는 것이 보다 실용적이다."

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key, addressId "
#~ "bigint not null )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"
#~ msgstr ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key, addressId "
#~ "bigint not null )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key, addressId "
#~ "bigint not null unique )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"
#~ msgstr ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key, addressId "
#~ "bigint not null unique )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"

#~ msgid ""
#~ "<![CDATA[\n"
#~ "        </generator>\n"
#~ "    </id>\n"
#~ "    <one-to-one name=\"person\" constrained=\"true\"/>\n"
#~ "</class>]]>"
#~ msgstr ""
#~ "<![CDATA[\n"
#~ "        </generator>\n"
#~ "    </id>\n"
#~ "    <one-to-one name=\"person\" constrained=\"true\"/>\n"
#~ "</class>]]>"

#~ msgid ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table Address ( personId bigint not null primary key )\n"
#~ "        ]]>"
#~ msgstr ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table Address ( personId bigint not null primary key )\n"
#~ "        ]]>"

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table Address ( addressId bigint not null primary key, personId "
#~ "bigint not null )\n"
#~ "        ]]>"
#~ msgstr ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table Address ( addressId bigint not null primary key, personId "
#~ "bigint not null )\n"
#~ "        ]]>"

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table PersonAddress ( personId not null, addressId bigint not null "
#~ "primary key )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"
#~ msgstr ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table PersonAddress ( personId not null, addressId bigint not null "
#~ "primary key )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table PersonAddress ( personId bigint not null primary key, "
#~ "addressId bigint not null )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"
#~ msgstr ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table PersonAddress ( personId bigint not null primary key, "
#~ "addressId bigint not null )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table PersonAddress ( personId bigint not null primary key, "
#~ "addressId bigint not null unique )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"
#~ msgstr ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table PersonAddress ( personId bigint not null primary key, "
#~ "addressId bigint not null unique )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
#~ "not null, primary key (personId, addressId) )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"
#~ msgstr ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
#~ "not null, primary key (personId, addressId) )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA[\n"
#~ "        </generator>\n"
#~ "    </id>\n"
#~ "    <one-to-one name=\"person\" \n"
#~ "        constrained=\"true\"/>\n"
#~ "</class>]]>"
#~ msgstr ""
#~ "<![CDATA[\n"
#~ "        </generator>\n"
#~ "    </id>\n"
#~ "    <one-to-one name=\"person\" \n"
#~ "        constrained=\"true\"/>\n"
#~ "</class>]]>"

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
#~ "not null primary key )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"
#~ msgstr ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
#~ "not null primary key )\n"
#~ "create table Address ( addressId bigint not null primary key )\n"
#~ "        ]]>"

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

#~ msgid ""
#~ "<![CDATA[\n"
#~ "</many-to-one>]]>"
#~ msgstr ""
#~ "<![CDATA[\n"
#~ "</many-to-one>]]>"

#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<![CDATA["

Other Hibernate examples (source code examples)

Here is a short list of links related to this Hibernate association_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.