|
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.
The Hibernate association_mapping.po source code
# translation of Collection_Mapping.po to
# Xi HUANG <xhuang@redhat.com>, 2007, 2010.
msgid ""
msgstr ""
"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2010-02-10T07:25:34\n"
"PO-Revision-Date: 2010-01-06 17:26+1000\n"
"Last-Translator: Xi HUANG <xhuang@redhat.com>\n"
"Language-Team: <en@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\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 ""
"関連ã¯ã€çµåˆãƒ†ãƒ¼ãƒ–ルを入れるã‹ã‹ã©ã†ã‹ã¨ã€å¤šé‡åº¦ã«ã‚ˆã£ã¦åˆ†é¡žã™ã‚‹ã“ã¨ã«ã—ã¾"
"ã™ã€‚"
#. 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 ""
"null å¯èƒ½ãªå¤–部ã‚ーã¯å¾“æ¥åž‹ãƒ‡ãƒ¼ã‚¿ãƒ¢ãƒ‡ãƒªãƒ³ã‚°ã®ä¸ã§ã¯è‰¯ã„ç¿’æ…£ã¨è¦‹ãªã•ã‚Œã¦ã„ãªã„"
"ãŸã‚ã€ã™ã¹ã¦ã®ä¾‹ã§ not null ã®å¤–部ã‚ーを使用ã—ã¾ã™ã€‚ã“れ㯠Hibernate ã®è¦ä»¶ã§"
"ã¯ã‚ã‚Šã¾ã›ã‚“。 not null 制約を外ã—ãŸã¨ã—ã¦ã‚‚ã€ãƒžãƒƒãƒ”ングã¯å•é¡Œãªã動作ã—ã¾"
"ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "Unidirectional associations"
msgstr "å˜æ–¹å‘関連"
#. Tag: title
#, fuzzy, no-c-format
msgid "Many-to-one"
msgstr "many-to-one"
#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>unidirectional many-to-one association is the most "
"common kind of unidirectional association."
msgstr ""
"<emphasis>å˜æ–¹å‘多対一関連 ã¯å˜æ–¹å‘関連ã®ä¸ã§æœ€ã‚‚一般的ãªã‚‚ã®ã§"
"ã™ã€‚"
#. Tag: title
#, fuzzy, no-c-format
msgid "One-to-one"
msgstr "one-to-one"
#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-one association on a foreign key ã¯ã»ã¨ã‚“ã©åŒã˜ã‚‚ã®ã§ã™ã€‚唯一"
"é•ã†ã®ã¯ã€ã‚«ãƒ©ãƒ ã®ãƒ¦ãƒ‹ãƒ¼ã‚¯ãªåˆ¶ç´„ã§ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>unidirectional one-to-one association on a primary key ã¯é€šå¸¸ã€ç‰¹åˆ¥ãª ID ジェãƒãƒ¬ãƒ¼ã‚¿"
"を使ã„ã¾ã™ã€‚ (ã“ã®ä¾‹ã§ã¯é–¢é€£ã®æ–¹å‘ãŒé€†ã«ãªã£ã¦ã„ã‚‹ã“ã¨ã«æ³¨æ„ã—ã¦ãã ã•ã„)"
#. Tag: title
#, fuzzy, no-c-format
msgid "One-to-many"
msgstr "one-to-many"
#. 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 "ã“ã®ã‚ˆã†ãªé–¢é€£ã®ãŸã‚ã«çµåˆãƒ†ãƒ¼ãƒ–ルを使ã†ã“ã¨ã‚’ãŠè–¦ã‚ã—ã¾ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "Unidirectional associations with join tables"
msgstr "çµåˆãƒ†ãƒ¼ãƒ–ルを使ã£ãŸå˜æ–¹å‘関連"
#. 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>çµåˆãƒ†ãƒ¼ãƒ–ルã®å˜æ–¹å‘一対一関連 ã¯ã€éžå¸¸ã«ç‰¹æ®Šã§ã™ãŒä¸å¯"
"能ã§ã¯ã‚ã‚Šã¾ã›ã‚“。"
#. Tag: title
#, fuzzy, no-c-format
msgid "Many-to-many"
msgstr "many-to-many"
#. 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\" ã¨è¨å®šã—ã¦ã€å対å´ã‚’仮想的㫠inverse ã«ã—"
"ã¾ã™ï¼‰ï¼š"
#. Tag: para
#, fuzzy, 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> ã«ã™ã‚‹ã“ã¨ã¯é‡è¦ã§ã™ã€‚入れåã«ãªã£ãŸ <column><key> è¦ç´ ã‚‚ "
"<literal>not-null=\"true\" ã¨å®šç¾©ã—ãªã„よã†ã«ã—ã¦ãã ã•ã„。"
#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a foreign 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 "çµåˆãƒ†ãƒ¼ãƒ–ルを使ã£ãŸåŒæ–¹å‘関連"
#. 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\" ã§ã™ã€‚ inverse="
"\"true\"</literal> ãŒé–¢é€£ç«¯ã€ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã€çµåˆã®ã„ãšã‚Œã‹ã«è¨å®šã§ãã‚‹ã“ã¨ã«æ³¨"
"æ„ã—ã¦ãã ã•ã„。"
#. Tag: title
#, no-c-format
msgid "one to one"
msgstr "一対一"
#. Tag: para
#, no-c-format
msgid ""
"A <emphasis>bidirectional one-to-one association on a join table "
"is possible, but extremely unusual."
msgstr ""
"<emphasis>çµåˆãƒ†ãƒ¼ãƒ–ルã®åŒæ–¹å‘一対一関連 ã¯éžå¸¸ã«ç‰¹æ®Šã§ã™ãŒã€å¯èƒ½"
"ã§ã™ã€‚"
#. 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>accountNumber 〠effectiveEndDate 〠"
"<literal>effectiveStartDate カラムをæŒã¤ account (å£åº§ï¼‰æƒ…å ±ã®å±¥æ´"
"を扱ã†ãƒ†ãƒ¼ãƒ–ルã¯ã€ä»¥ä¸‹ã®ã‚ˆã†ã«ãƒžãƒƒãƒ”ングã—ã¾ã™ã€‚"
#. 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 ""
"ãã—ã¦ã€é–¢é€£ã‚’ <emphasis>ç¾æ™‚点㮠インスタンス "
"(<literal>effectiveEndDate ㌠null ã§ã‚ã‚‹ã‚‚ã®ï¼‰ã«ãƒžãƒƒãƒ”ングã—ã¾"
"ã™ã€‚以下ã®ã‚ˆã†ã«ãªã‚Šã¾ã™ï¼š"
#. 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 recentstartDate 㨠"
"<literal>Organization(組織) é–“ã®é–¢é€£ãŒ Employment(雇"
"用)</literal> テーブルã§ä¿æŒã•ã‚Œã‚‹å ´åˆã‚’想åƒã—ã¦ãã ã•ã„。ã“ã®ãƒ†ãƒ¼ãƒ–ルã«ã¯é›‡"
"用データã®å±¥æ´ãŒã™ã¹ã¦å«ã¾ã‚Œã¾ã™ã€‚ã™ã‚‹ã¨å¾“æ¥å“¡ã® <emphasis>最も最近ã®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 クエリ"
"を使ã†æ–¹ãŒã‚ˆã‚Šå®Ÿè·µçš„ã§ã™ã€‚"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <many-to-one name=\"address\" \n"
#~ " column=\"addressId\"\n"
#~ " not-null=\"true\"/>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"addressId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ "</class>"
#, fuzzy
#~ 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 ""
#~ "create table Person ( personId bigint not null primary key, addressId "
#~ "bigint not null )\n"
#~ "create table Address ( addressId bigint not null primary key )"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <many-to-one name=\"address\" \n"
#~ " column=\"addressId\" \n"
#~ " unique=\"true\"\n"
#~ " not-null=\"true\"/>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"addressId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ "</class>"
#, fuzzy
#~ 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 ""
#~ "create table Person ( personId bigint not null primary key, addressId "
#~ "bigint not null unique )\n"
#~ "create table Address ( addressId bigint not null primary key )"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[\n"
#~ " </generator>\n"
#~ " </id>\n"
#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
#~ "</class>]]>"
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"foreign\">\n"
#~ " <param name=\"property\">person</param>\n"
#~ " </generator>\n"
#~ " </id>\n"
#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[\n"
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table Address ( personId bigint not null primary key )\n"
#~ " ]]>"
#~ msgstr ""
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table Address ( personId bigint not null primary key )"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <set name=\"addresses\">\n"
#~ " <key column=\"personId\" \n"
#~ " not-null=\"true\"/>\n"
#~ " <one-to-many class=\"Address\"/>\n"
#~ " </set>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"addressId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ "</class>"
#, fuzzy
#~ 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 ""
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table Address ( addressId bigint not null primary key, personId "
#~ "bigint not null )"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
#~ " <key column=\"personId\"/>\n"
#~ " <many-to-many column=\"addressId\"\n"
#~ " unique=\"true\"\n"
#~ " class=\"Address\"/>\n"
#~ " </set>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"addressId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ "</class>"
#, fuzzy
#~ 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 ""
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table PersonAddress ( personId not null, addressId bigint \n"
#~ " not null primary key )\n"
#~ "create table Address ( addressId bigint not null primary key )"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <join table=\"PersonAddress\" \n"
#~ " optional=\"true\">\n"
#~ " <key column=\"personId\" unique=\"true\"/>\n"
#~ " <many-to-one name=\"address\"\n"
#~ " column=\"addressId\" \n"
#~ " not-null=\"true\"/>\n"
#~ " </join>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"addressId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ "</class>"
#, fuzzy
#~ 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 ""
#~ "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 )"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <join table=\"PersonAddress\" \n"
#~ " optional=\"true\">\n"
#~ " <key column=\"personId\" \n"
#~ " unique=\"true\"/>\n"
#~ " <many-to-one name=\"address\"\n"
#~ " column=\"addressId\" \n"
#~ " not-null=\"true\"\n"
#~ " unique=\"true\"/>\n"
#~ " </join>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"addressId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ "</class>"
#, fuzzy
#~ 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 ""
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table PersonAddress ( personId bigint not null primary key, "
#~ "addressId bigint\n"
#~ " not null unique )\n"
#~ "create table Address ( addressId bigint not null primary key )"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
#~ " <key column=\"personId\"/>\n"
#~ " <many-to-many column=\"addressId\"\n"
#~ " class=\"Address\"/>\n"
#~ " </set>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"addressId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ "</class>"
#, fuzzy
#~ 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 ""
#~ "create table Person ( personId bigint not null primary key )\n"
#~ "create table PersonAddress ( personId bigint not null, addressId bigint "
#~ "not null, \n"
#~ " primary key (personId, addressId) )\n"
#~ "create table Address ( addressId bigint not null primary key )"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <many-to-one name=\"address\" \n"
#~ " column=\"addressId\"\n"
#~ " not-null=\"true\"/>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"addressId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <set name=\"people\" inverse=\"true\">\n"
#~ " <key column=\"addressId\"/>\n"
#~ " <one-to-many class=\"Person\"/>\n"
#~ " </set>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\"/>\n"
#~ " ...\n"
#~ " <many-to-one name=\"address\"\n"
#~ " column=\"addressId\"\n"
#~ " not-null=\"true\"\n"
#~ " insert=\"false\"\n"
#~ " update=\"false\"/>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\"/>\n"
#~ " ...\n"
#~ " <list name=\"people\">\n"
#~ " <key column=\"addressId\" not-null=\"true\"/>\n"
#~ " <list-index column=\"peopleIdx\"/>\n"
#~ " <one-to-many class=\"Person\"/>\n"
#~ " </list>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <many-to-one name=\"address\" \n"
#~ " column=\"addressId\" \n"
#~ " unique=\"true\"\n"
#~ " not-null=\"true\"/>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"addressId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <one-to-one name=\"person\" \n"
#~ " property-ref=\"address\"/>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[\n"
#~ " </generator>\n"
#~ " </id>\n"
#~ " <one-to-one name=\"person\" \n"
#~ " constrained=\"true\"/>\n"
#~ "</class>]]>"
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <one-to-one name=\"address\"/>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"foreign\">\n"
#~ " <param name=\"property\">person</param>\n"
#~ " </generator>\n"
#~ " </id>\n"
#~ " <one-to-one name=\"person\" \n"
#~ " constrained=\"true\"/>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <set name=\"addresses\" \n"
#~ " table=\"PersonAddress\">\n"
#~ " <key column=\"personId\"/>\n"
#~ " <many-to-many column=\"addressId\"\n"
#~ " unique=\"true\"\n"
#~ " class=\"Address\"/>\n"
#~ " </set>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"addressId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <join table=\"PersonAddress\" \n"
#~ " inverse=\"true\" \n"
#~ " optional=\"true\">\n"
#~ " <key column=\"addressId\"/>\n"
#~ " <many-to-one name=\"person\"\n"
#~ " column=\"personId\"\n"
#~ " not-null=\"true\"/>\n"
#~ " </join>\n"
#~ "</class>"
#, fuzzy
#~ 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 ""
#~ "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 )"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <join table=\"PersonAddress\" \n"
#~ " optional=\"true\">\n"
#~ " <key column=\"personId\" \n"
#~ " unique=\"true\"/>\n"
#~ " <many-to-one name=\"address\"\n"
#~ " column=\"addressId\" \n"
#~ " not-null=\"true\"\n"
#~ " unique=\"true\"/>\n"
#~ " </join>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"addressId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <join table=\"PersonAddress\" \n"
#~ " optional=\"true\"\n"
#~ " inverse=\"true\">\n"
#~ " <key column=\"addressId\" \n"
#~ " unique=\"true\"/>\n"
#~ " <many-to-one name=\"person\"\n"
#~ " column=\"personId\" \n"
#~ " not-null=\"true\"\n"
#~ " unique=\"true\"/>\n"
#~ " </join>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Person\">\n"
#~ " <id name=\"id\" column=\"personId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <set name=\"addresses\" table=\"PersonAddress\">\n"
#~ " <key column=\"personId\"/>\n"
#~ " <many-to-many column=\"addressId\"\n"
#~ " class=\"Address\"/>\n"
#~ " </set>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\">\n"
#~ " <id name=\"id\" column=\"addressId\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <set name=\"people\" inverse=\"true\" table=\"PersonAddress\">\n"
#~ " <key column=\"addressId\"/>\n"
#~ " <many-to-many column=\"personId\"\n"
#~ " class=\"Person\"/>\n"
#~ " </set>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<properties name=\"currentAccountKey\">\n"
#~ " <property name=\"accountNumber\" type=\"string\" not-null=\"true\"/"
#~ ">\n"
#~ " <property name=\"currentAccount\" type=\"boolean\">\n"
#~ " <formula>case when effectiveEndDate is null then 1 else 0 "
#~ "end</formula>\n"
#~ " </property>\n"
#~ "</properties>\n"
#~ "<property name=\"effectiveEndDate\" type=\"date\"/>\n"
#~ "<property name=\"effectiveStateDate\" type=\"date\" not-null=\"true\"/"
#~ ">"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[\n"
#~ "</many-to-one>]]>"
#~ msgstr ""
#~ "<many-to-one name=\"currentAccountInfo\" \n"
#~ " property-ref=\"currentAccountKey\"\n"
#~ " class=\"AccountInfo\">\n"
#~ " <column name=\"accountNumber\"/>\n"
#~ " <formula>'1'</formula>\n"
#~ "</many-to-one>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<join>\n"
#~ " <key column=\"employeeId\"/>\n"
#~ " <subselect>\n"
#~ " select employeeId, orgId \n"
#~ " from Employments \n"
#~ " group by orgId \n"
#~ " having startDate = max(startDate)\n"
#~ " </subselect>\n"
#~ " <many-to-one name=\"mostRecentEmployer\" \n"
#~ " class=\"Organization\" \n"
#~ " column=\"orgId\"/>\n"
#~ "</join>"
Other Hibernate examples (source code examples)
Here is a short list of links related to this Hibernate association_mapping.po source code file:
|