|
Hibernate example source code file (component_mapping.po)
This example Hibernate source code file (component_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 component_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-11T05:38:15\n"
"PO-Revision-Date: 2010-01-07 09:28+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 "Component Mapping"
msgstr "コンãƒãƒ¼ãƒãƒ³ãƒˆã®ãƒžãƒƒãƒ”ング"
#. Tag: para
#, no-c-format
msgid ""
"The notion of a <emphasis>component is re-used in several "
"different contexts and purposes throughout Hibernate."
msgstr ""
"<emphasis>コンãƒãƒ¼ãƒãƒ³ãƒˆ ã®æ¦‚念ã¯ã€ Hibernate を通ã—ã¦æ§˜ã€…ãªçжæ³ã®"
"ä¸ã§ç•°ãªã‚‹ç›®çš„ã®ãŸã‚ã«å†åˆ©ç”¨ã•れã¾ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "Dependent objects"
msgstr "ä¾å˜ã‚ªãƒ–ジェクト"
#. Tag: para
#, no-c-format
msgid ""
"A component is a contained object that is persisted as a value type and not "
"an entity reference. The term \"component\" refers to the object-oriented "
"notion of composition and not to architecture-level components. For example, "
"you can model a person like this:"
msgstr ""
"コンãƒãƒ¼ãƒãƒ³ãƒˆã¯ã€ã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã®å‚ç…§ã§ã¯ãªã値型ã¨ã—ã¦æ°¸ç¶šåŒ–ã•れãŸã€åŒ…å«ã•れ"
"ãŸã‚ªãƒ–ジェクトã§ã™ã€‚「コンãƒãƒ¼ãƒãƒ³ãƒˆã€ã¨ã„ã†è¨€è‘‰ã«ã¤ã„ã¦ã¯ã€ã‚³ãƒ³ãƒã‚¸ã‚·ãƒ§ãƒ³ã¨"
"ã„ã†ã‚ªãƒ–ジェクト指å‘ã®æ¦‚念をå‚ç…§ã—ã¦ãã ã•ã„(アーã‚テクãƒãƒ£ãƒ¬ãƒ™ãƒ«ã®ã‚³ãƒ³ãƒãƒ¼"
"ãƒãƒ³ãƒˆã§ã¯ã‚りã¾ã›ã‚“)。例ãˆã°ã€ä»¥ä¸‹ã® Person モデルã®ã‚ˆã†ãªã‚‚ã®ã§ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"Now <literal>Name can be persisted as a component of "
"<literal>Person. Name defines getter and setter "
"methods for its persistent properties, but it does not need to declare any "
"interfaces or identifier properties."
msgstr ""
"ã„ã¾ã€ <literal>Name 㯠Person ã®ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆ"
"ã¨ã—ã¦æ°¸ç¶šåŒ–ã™ã‚‹ã“ã¨ãŒå‡ºæ¥ã¾ã™ã€‚ã“ã“ã§ <literal>Name ã¯æ°¸ç¶šåŒ–属性ã«"
"対ã—㦠getter 〠setter メソッドを定義ã—ã¾ã™ãŒã€ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ェースやè˜åˆ¥åプãƒ"
"パティを定義ã™ã‚‹å¿…è¦ãŒãªã„ã“ã¨ã«æ³¨æ„ã—ã¦ä¸‹ã•ã„。"
#. Tag: para
#, no-c-format
msgid "Our Hibernate mapping would look like this:"
msgstr "マッピング定義ã¯ä»¥ä¸‹ã®ã‚ˆã†ã«ãªã‚Šã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"The person table would have the columns <literal>pid, "
"<literal>birthday, initial, firstlast."
msgstr ""
"Person テーブル㯠<literal>pid〠birthday〠"
"<literal>initial〠first〠last be considered an exotic usage. Hibernate is "
"intended to support a fine-grained object model."
msgstr ""
"コンãƒãƒ¼ãƒãƒ³ãƒˆã®å±žæ€§ã¯ã©ã‚“㪠Hibernate ã®åž‹ã§ã‚‚æ§‹ã„ã¾ã›ã‚“(コレクション〠"
"many-to-one 関連ã€ä»–ã®ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆãªã©ï¼‰ã€‚ãƒã‚¹ãƒˆã•れãŸã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã¯æ»…多"
"ã«ä½¿ã‚ãªã„ã¨è€ƒãˆã‚‹ã¹ãã§ã¯ <emphasis>ã‚りã¾ã›ã‚“ 。 Hibernate ã¯éž"
"常ã«ãã‚ã®ç´°ã‹ã„オブジェクトモデルをサãƒãƒ¼ãƒˆã™ã‚‹ã‚ˆã†ã«æ„図ã•れã¦ã„ã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"The <literal><component> element allows a <"
"parent></literal> subelement that maps a property of the component class "
"as a reference back to the containing entity."
msgstr ""
"<literal><component> è¦ç´ ã¯ã€è¦ªã‚¨ãƒ³ãƒ†ã‚£ãƒ†ã‚£ã¸æˆ»ã‚‹å‚ç…§ã¨ã—ã¦ã€"
"コンãƒãƒ¼ãƒãƒ³ãƒˆã®ã‚¯ãƒ©ã‚¹ã®ãƒ—ãƒãƒ‘ティをマッピングã™ã‚‹ <literal><parent>). Declare your component collection by replacing the "
"<literal><element> tag with a <composite-"
"element></literal> tag:"
msgstr ""
"Hibernate ã¯ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã®ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’サãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã™ï¼ˆä¾‹ãˆã° "
"<literal>Name åž‹ã®é…列)。 <element> ã‚¿ã‚°"
"ã‚’ <literal><composite-element> ã‚¿ã‚°ã«å–り替ãˆã‚‹ã“ã¨ã«ã‚ˆã‚Šã‚³"
"ンãƒãƒ¼ãƒãƒ³ãƒˆã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’宣言ã—ã¦ãã ã•ã„。"
#. Tag: para
#, no-c-format
msgid ""
"If you define a <literal>Set of composite elements, it is "
"important to implement <literal>equals() and hashCode() を定義ã—ãŸãªã‚‰ã€ "
"<literal>equals() 㨠hashCode() ã‚’æ£ã—ã実装ã™ã‚‹"
"ã“ã¨ãŒé‡è¦ã§ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"Composite elements can contain components but not collections. If your "
"composite element contains components, use the <literal><nested-composite-"
"element></literal> tag. This case is a collection of components which "
"themselves have components. You may want to consider if a one-to-many "
"association is more appropriate. Remodel the composite element as an entity, "
"but be aware that even though the Java model is the same, the relational "
"model and persistence semantics are still slightly different."
msgstr ""
"コンãƒã‚¸ãƒƒãƒˆã‚¨ãƒ¬ãƒ¡ãƒ³ãƒˆã¯ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’å«ã¾ãšã€ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã‚’å«ã‚€ã“ã¨ã‚‚ã‚り"
"ã¾ã™ã€‚コンãƒã‚¸ãƒƒãƒˆã‚¨ãƒ¬ãƒ¡ãƒ³ãƒˆè‡ªèº«ãŒã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã‚’å«ã‚“ã§ã„ã‚‹å ´åˆã¯ "
"<literal><nested-composite-element> を使用ã—ã¦ãã ã•ã„。コン"
"ãƒãƒ¼ãƒãƒ³ãƒˆã®ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³è‡ªèº«ãŒã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã‚’æŒã¤ã¨ã„ã†ã‚±ãƒ¼ã‚¹ã¯ã‚ã£ãŸã«ã‚り"
"ã¾ã›ã‚“。ã“ã®æ®µéšŽã¾ã§ã«ã€ one-to-many é–¢é€£ã®æ–¹ãŒã‚ˆã‚Šé©åˆ‡ã§ãªã„ã‹ã¨ç†Ÿè€ƒã—ã¦ãã "
"ã•ã„。コンãƒã‚¸ãƒƒãƒˆã‚¨ãƒ¬ãƒ¡ãƒ³ãƒˆã‚’エンティティã¨ã—ã¦å†åº¦ãƒ¢ãƒ‡ãƒªãƒ³ã‚°ã—ã¦ã¿ã¦ãã ã•"
"ã„。ã—ã‹ã—ã“れ㯠Java ã®ãƒ¢ãƒ‡ãƒ«ã¨ã—ã¦ã¯åŒã˜ã§ã™ãŒã€ãƒªãƒ¬ãƒ¼ã‚·ãƒ§ãƒŠãƒ«ãƒ¢ãƒ‡ãƒ«ã¨æ°¸ç¶š"
"動作ã¯ã¾ã 若干異ãªã‚‹ã“ã¨ã«æ³¨æ„ã—ã¦ãã ã•ã„。"
#. Tag: para
#, no-c-format
msgid ""
"A composite element mapping does not support null-able properties if you are "
"using a <literal><set>. There is no separate primary key "
"column in the composite element table. Hibernate uses each column's value to "
"identify a record when deleting objects, which is not possible with null "
"values. You have to either use only not-null properties in a composite-"
"element or choose a <literal><list>, <map><bag> or <idbag>."
msgstr ""
"ã‚‚ã— <literal><set> を使用ã™ã‚‹ã®ã§ã‚れã°ã€ã‚³ãƒ³ãƒã‚¸ãƒƒãƒˆã‚¨ãƒ¬ãƒ¡"
"ントã®ãƒžãƒƒãƒ”ング㌠null 値ãŒå¯èƒ½ãªå±žæ€§ã‚’サãƒãƒ¼ãƒˆã—ã¦ã„ãªã„ã“ã¨ã«æ³¨æ„ã—ã¦ãã "
"ã•ã„。 Hibernate ã¯ã‚ªãƒ–ジェクトを削除ã™ã‚‹ã¨ãã€ãƒ¬ã‚³ãƒ¼ãƒ‰ã‚’è˜åˆ¥ã™ã‚‹ãŸã‚ã«ãれãž"
"れã®ã‚«ãƒ©ãƒ ã®å€¤ã‚’使用ã™ã‚‹å¿…è¦ãŒã‚ã‚‹ãŸã‚〠null 値をæŒã¤ã“ã¨ãŒå‡ºæ¥ã¾ã›ã‚“ (コン"
"ãƒã‚¸ãƒƒãƒˆã‚¨ãƒ¬ãƒ¡ãƒ³ãƒˆãƒ†ãƒ¼ãƒ–ルã«ã¯åˆ¥ã®ä¸»ã‚ーカラムã¯ã‚りã¾ã›ã‚“)。 コンãƒã‚¸ãƒƒãƒˆã‚¨"
"レメント㫠not-null ã®å±žæ€§ã®ã¿ã‚’使用ã™ã‚‹ã‹ã€ã¾ãŸã¯ <literal><list><map>〠<bag>ã€"
"<literal><idbag> ã‚’é¸æŠžã™ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"A special case of a composite element is a composite element with a nested "
"<literal><many-to-one> element. This mapping allows you to "
"map extra columns of a many-to-many association table to the composite "
"element class. The following is a many-to-many association from "
"<literal>Order to Item, where "
"<literal>purchaseDate, price and "
"<literal>quantity are properties of the association:"
msgstr ""
"コンãƒã‚¸ãƒƒãƒˆã‚¨ãƒ¬ãƒ¡ãƒ³ãƒˆã®ç‰¹åˆ¥ãªã‚±ãƒ¼ã‚¹ã¨ã—ã¦ã€ãƒã‚¹ãƒˆã•れ㟠<literal><many-"
"to-one></literal> 属性をæŒã¤ã‚³ãƒ³ãƒã‚¸ãƒƒãƒˆã‚¨ãƒ¬ãƒ¡ãƒ³ãƒˆãŒã‚りã¾ã™ã€‚ã“ã®ãƒžãƒƒãƒ”ン"
"ã‚°ã¯ã€ã‚³ãƒ³ãƒã‚¸ãƒƒãƒˆã‚¨ãƒ¬ãƒ¡ãƒ³ãƒˆã‚¯ãƒ©ã‚¹ã‚’多対多関連テーブルã®ä½™åˆ†ãªã‚«ãƒ©ãƒ ã¸ãƒžãƒƒãƒ”"
"ングã—ã¾ã™ã€‚次ã®ä¾‹ã¯ <literal>Order ã‹ã‚‰ã€Item "
"ã¸ã®å¤šå¯¾å¤šé–¢é€£ã§ã™ã€‚ <literal>purchaseDate〠pricequantity ã¯é–¢é€£ã®å±žæ€§ã¨ãªã‚Šã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"There cannot be a reference to the purchase on the other side for "
"bidirectional association navigation. Components are value types and do not "
"allow shared references. A single <literal>Purchase can be in the "
"set of an <literal>Order, but it cannot be referenced by the "
"<literal>Item at the same time."
msgstr ""
"ã‚‚ã¡ã‚ã‚“ã€åŒæ–¹å‘関連ã®ãƒŠãƒ“ゲーションã®ãŸã‚ã«å対å´ã‹ã‚‰ purchase ã¸ã®å‚照を作"
"ã‚‹ã“ã¨ã¯å‡ºæ¥ã¾ã›ã‚“。コンãƒãƒ¼ãƒãƒ³ãƒˆã¯å€¤åž‹ã§ã‚りã€å‚照を共有ã§ããªã„ã“ã¨ã‚’覚ãˆ"
"ã¦ãŠã„ã¦ãã ã•ã„。一ã¤ã® <literal>Purchase ã¯ä¸€ã¤ã® "
"<literal>Order ã® set ã«å˜åœ¨ã§ãã¾ã™ãŒã€åŒæ™‚ã« Item element allows you to map a "
"component class as the key of a <literal>Map. Ensure that you "
"override <literal>hashCode() and equals() "
"correctly on the component class."
msgstr ""
"<literal><composite-map-key> è¦ç´ 㯠Map ã®"
"ã‚ーã¨ã—ã¦ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆã‚¯ãƒ©ã‚¹ã‚’マッピングã—ã¾ã™ã€‚コンãƒãƒ¼ãƒãƒ³ãƒˆã‚¯ãƒ©ã‚¹ä¸Šã§ "
"<literal>hashCode() 㨠equals() ã‚’æ£ç¢ºã«ã‚ªãƒ¼ãƒãƒ¼"
"ライドã—ã¦ãã ã•ã„。"
#. Tag: title
#, no-c-format
msgid "Components as composite identifiers"
msgstr "複åˆè˜åˆ¥åã¨ã—ã¦ã®ã‚³ãƒ³ãƒãƒ¼ãƒãƒ³ãƒˆ"
#. Tag: para
#, no-c-format
msgid ""
"You can use a component as an identifier of an entity class. Your component "
"class must satisfy certain requirements:"
msgstr ""
"コンãƒãƒ¼ãƒãƒ³ãƒˆã‚’エンティティクラスã®è˜åˆ¥åã¨ã—ã¦ä½¿ã†ã“ã¨ãŒã§ãã¾ã™ã€‚コンãƒãƒ¼"
"ãƒãƒ³ãƒˆã‚¯ãƒ©ã‚¹ã¯ä»¥ä¸‹ã®æ¡ä»¶ã‚’満ãŸã™å¿…è¦ãŒã‚りã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid "It must implement <literal>java.io.Serializable."
msgstr "<literal>java.io.Serializable を実装ã—ãªã‘れã°ãªã‚Šã¾ã›ã‚“。"
#. Tag: para
#, no-c-format
msgid ""
"It must re-implement <literal>equals() and hashCode()hashCode() ã‚’å†å®Ÿè£…ã—ãªã‘れã°ãªã‚Šã¾ã›ã‚“。"
#. Tag: title
#, no-c-format
msgid "Note"
msgstr "注記"
#. Tag: para
#, no-c-format
msgid ""
"In Hibernate3, although the second requirement is not an absolutely hard "
"requirement of Hibernate, it is recommended."
msgstr ""
"Hibernate3 ã«ãŠã„ã¦ã€2ç•ªç›®ã®æ¡ä»¶ã¯çµ¶å¯¾çš„ãªæ¡ä»¶ã§ã¯ã‚りã¾ã›ã‚“。ãれã§ã‚‚ã‚„ã¯ã‚Š"
"æ¡ä»¶ã‚’満ãŸã—ã¦ãã ã•ã„。"
#. Tag: para
#, no-c-format
msgid ""
"You cannot use an <literal>IdentifierGenerator to generate "
"composite keys. Instead the application must assign its own identifiers."
msgstr ""
"複åˆã‚ーを生æˆã™ã‚‹ãŸã‚ã« <literal>IdentifierGenerator を使用ã™ã‚‹ã“"
"ã¨ã¯ã§ãã¾ã›ã‚“。代ã‚りã«ã‚¢ãƒ—リケーションãŒè˜åˆ¥åを割り当ã¦ãªãã¦ã¯ãªã‚Šã¾ã›"
"ん。"
#. Tag: para
#, no-c-format
msgid ""
"Use the <literal><composite-id> tag, with nested "
"<literal><key-property> elements, in place of the usual "
"<literal><id> declaration. For example, the "
"<literal>OrderLine class has a primary key that depends upon the "
"(composite) primary key of <literal>Order."
msgstr ""
"通常㮠<literal><id> 宣言ã®ä»£ã‚り㫠<composite-"
"id></literal> ã‚¿ã‚°ã‚’ (ãƒã‚¹ãƒˆã•れ㟠<key-property>OrderLine "
"クラス㯠<literal>Order ã®ï¼ˆè¤‡åˆï¼‰ä¸»ã‚ーã«ä¾å˜ã—ãŸä¸»ã‚ーをæŒã£ã¦ã„"
"ã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"Any foreign keys referencing the <literal>OrderLine table are now "
"composite. Declare this in your mappings for other classes. An association "
"to <literal>OrderLine is mapped like this:"
msgstr ""
"ã“ã®ã¨ã〠<literal>OrderLine テーブルã¸é–¢é€£ã™ã‚‹å¤–部ã‚ーもã¾ãŸè¤‡åˆ"
"ã§ã™ã€‚ä»–ã®ã‚¯ãƒ©ã‚¹ã®ãƒžãƒƒãƒ”ングã§ã“れを宣言ã—ãªã‘れã°ãªã‚Šã¾ã›ã‚“。 "
"<literal>OrderLine ã¸ã®é–¢é€£ã¯æ¬¡ã®ã‚ˆã†ã«ãƒžãƒƒãƒ”ングã•れã¾ã™ã€‚"
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The <literal>column element is an alternative to the "
"<literal>column attribute everywhere. Using the column"
msgstr ""
"(<literal><column> ã‚¿ã‚°ã¯ã©ã“ã§ã‚ã£ã¦ã‚‚ column association to OrderLine ã¸ã® many-to-many 関連も複åˆ"
"外部ã‚ーを使ã„ã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"The collection of <literal>OrderLines in Order "
"would use:"
msgstr ""
"<literal>Order ã«ã‚ã‚‹ OrderLine ã®ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã¯"
"次ã®ã‚‚ã®ã‚’使用ã—ã¾ã™ã€‚"
#. Tag: para
#, no-c-format
msgid "The <literal><one-to-many> element declares no columns."
msgstr ""
"(<literal><one-to-many> 属性ã¯ã€ä¾‹ã«ã‚ˆã£ã¦ã‚«ãƒ©ãƒ を宣言ã—ã¾ã›"
"ん)"
#. Tag: para
#, no-c-format
msgid ""
"If <literal>OrderLine itself owns a collection, it also has a "
"composite foreign key."
msgstr ""
"<literal>OrderLine 自身ãŒã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’æŒã£ã¦ã„ã‚‹å ´åˆã€åŒæ™‚ã«è¤‡åˆå¤–"
"部ã‚ーもæŒã£ã¦ã„ã¾ã™ã€‚"
#. Tag: title
#, no-c-format
msgid "Dynamic components"
msgstr "動的コンãƒãƒ¼ãƒãƒ³ãƒˆ"
#. Tag: para
#, no-c-format
msgid "You can also map a property of type <literal>Map:"
msgstr "<literal>Map åž‹ã®ãƒ—ãƒãƒ‘ティã®ãƒžãƒƒãƒ”ングもå¯èƒ½ã§ã™ã€‚"
#. Tag: para
#, no-c-format
msgid ""
"The semantics of a <literal><dynamic-component> mapping are "
"identical to <literal><component>. The advantage of this "
"kind of mapping is the ability to determine the actual properties of the "
"bean at deployment time just by editing the mapping document. Runtime "
"manipulation of the mapping document is also possible, using a DOM parser. "
"You can also access, and change, Hibernate's configuration-time metamodel "
"via the <literal>Configuration object."
msgstr ""
"<literal><dynamic-component> マッピングã®ã‚»ãƒžãƒ³ãƒ†ã‚£ã‚¯ã‚¹ã¯ "
"<literal><component> ã¨åŒä¸€ã®ã‚‚ã®ã§ã™ã€‚ã“ã®ç¨®ã®ãƒžãƒƒãƒ”ングã®åˆ©"
"点ã¯ã€ãƒžãƒƒãƒ”ングドã‚ュメントã®ç·¨é›†ã«ã‚ˆã‚Šã€é…置時㫠Bean ã®å±žæ€§ã‚’決定ã§ãる点"
"ã§ã™ã€‚ã¾ãŸã€ DOM パーサを利用ã—ã¦ã€ãƒžãƒƒãƒ”ングドã‚ュメントã®ãƒ©ãƒ³ã‚¿ã‚¤ãƒ æ“作ãŒå¯"
"能ã§ã™ã€‚ã•らã«ã€ <literal>Configuration オブジェクト経由㧠"
"Hibernate ã®ã‚³ãƒ³ãƒ•ィグレーション時ã®ãƒ¡ã‚¿ãƒ¢ãƒ‡ãƒ«ã«ã‚¢ã‚¯ã‚»ã‚¹ï¼ˆã¾ãŸã¯å¤‰æ›´ï¼‰ãŒå¯èƒ½"
"ã§ã™ã€‚"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[public class Person {\n"
#~ " private java.util.Date birthday;\n"
#~ " private Name name;\n"
#~ " private String key;\n"
#~ " public String getKey() {\n"
#~ " return key;\n"
#~ " }\n"
#~ " private void setKey(String key) {\n"
#~ " this.key=key;\n"
#~ " }\n"
#~ " public java.util.Date getBirthday() {\n"
#~ " return birthday;\n"
#~ " }\n"
#~ " public void setBirthday(java.util.Date birthday) {\n"
#~ " this.birthday = birthday;\n"
#~ " }\n"
#~ " public Name getName() {\n"
#~ " return name;\n"
#~ " }\n"
#~ " public void setName(Name name) {\n"
#~ " this.name = name;\n"
#~ " }\n"
#~ " ......\n"
#~ " ......\n"
#~ "}]]>"
#~ msgstr ""
#~ "public class Person {\n"
#~ " private java.util.Date birthday;\n"
#~ " private Name name;\n"
#~ " private String key;\n"
#~ " public String getKey() {\n"
#~ " return key;\n"
#~ " }\n"
#~ " private void setKey(String key) {\n"
#~ " this.key=key;\n"
#~ " }\n"
#~ " public java.util.Date getBirthday() {\n"
#~ " return birthday;\n"
#~ " }\n"
#~ " public void setBirthday(java.util.Date birthday) {\n"
#~ " this.birthday = birthday;\n"
#~ " }\n"
#~ " public Name getName() {\n"
#~ " return name;\n"
#~ " }\n"
#~ " public void setName(Name name) {\n"
#~ " this.name = name;\n"
#~ " }\n"
#~ " ......\n"
#~ " ......\n"
#~ "}"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[public class Name {\n"
#~ " char initial;\n"
#~ " String first;\n"
#~ " String last;\n"
#~ " public String getFirst() {\n"
#~ " return first;\n"
#~ " }\n"
#~ " void setFirst(String first) {\n"
#~ " this.first = first;\n"
#~ " }\n"
#~ " public String getLast() {\n"
#~ " return last;\n"
#~ " }\n"
#~ " void setLast(String last) {\n"
#~ " this.last = last;\n"
#~ " }\n"
#~ " public char getInitial() {\n"
#~ " return initial;\n"
#~ " }\n"
#~ " void setInitial(char initial) {\n"
#~ " this.initial = initial;\n"
#~ " }\n"
#~ "}]]>"
#~ msgstr ""
#~ "public class Name {\n"
#~ " char initial;\n"
#~ " String first;\n"
#~ " String last;\n"
#~ " public String getFirst() {\n"
#~ " return first;\n"
#~ " }\n"
#~ " void setFirst(String first) {\n"
#~ " this.first = first;\n"
#~ " }\n"
#~ " public String getLast() {\n"
#~ " return last;\n"
#~ " }\n"
#~ " void setLast(String last) {\n"
#~ " this.last = last;\n"
#~ " }\n"
#~ " public char getInitial() {\n"
#~ " return initial;\n"
#~ " }\n"
#~ " void setInitial(char initial) {\n"
#~ " this.initial = initial;\n"
#~ " }\n"
#~ "}"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"eg.Person\" table=\"person\">\n"
#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
#~ " <generator class=\"uuid\"/>\n"
#~ " </id>\n"
#~ " <property name=\"birthday\" type=\"date\"/>\n"
#~ " <component name=\"Name\" class=\"eg.Name\"> <!-- class "
#~ "attribute optional -->\n"
#~ " <property name=\"initial\"/>\n"
#~ " <property name=\"first\"/>\n"
#~ " <property name=\"last\"/>\n"
#~ " </component>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"eg.Person\" table=\"person\">\n"
#~ " <id name=\"Key\" column=\"pid\" type=\"string\">\n"
#~ " <generator class=\"uuid\"/>\n"
#~ " </id>\n"
#~ " <property name=\"birthday\" type=\"date\"/>\n"
#~ " <component name=\"Name\" class=\"eg.Name\" unique=\"true\">\n"
#~ " <parent name=\"namedPerson\"/> <!-- reference back to "
#~ "the Person -->\n"
#~ " <property name=\"initial\"/>\n"
#~ " <property name=\"first\"/>\n"
#~ " <property name=\"last\"/>\n"
#~ " </component>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<set name=\"someNames\" table=\"some_names\" lazy=\"true\">\n"
#~ " <key column=\"id\"/>\n"
#~ " <composite-element class=\"eg.Name\"> <!-- class attribute "
#~ "required -->\n"
#~ " <property name=\"initial\"/>\n"
#~ " <property name=\"first\"/>\n"
#~ " <property name=\"last\"/>\n"
#~ " </composite-element>\n"
#~ "</set>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"eg.Order\" .... >\n"
#~ " ....\n"
#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true"
#~ "\">\n"
#~ " <key column=\"order_id\">\n"
#~ " <composite-element class=\"eg.Purchase\">\n"
#~ " <property name=\"purchaseDate\"/>\n"
#~ " <property name=\"price\"/>\n"
#~ " <property name=\"quantity\"/>\n"
#~ " <many-to-one name=\"item\" class=\"eg.Item\"/> <!-- "
#~ "class attribute is optional -->\n"
#~ " </composite-element>\n"
#~ " </set>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"eg.Order\" .... >\n"
#~ " ....\n"
#~ " <set name=\"purchasedItems\" table=\"purchase_items\" lazy=\"true"
#~ "\">\n"
#~ " <key column=\"order_id\">\n"
#~ " <composite-element class=\"eg.OrderLine\">\n"
#~ " <many-to-one name=\"purchaseDetails class=\"eg.Purchase\"/"
#~ ">\n"
#~ " <many-to-one name=\"item\" class=\"eg.Item\"/>\n"
#~ " </composite-element>\n"
#~ " </set>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"OrderLine\">\n"
#~ " \n"
#~ " <composite-id name=\"id\" class=\"OrderLineId\">\n"
#~ " <key-property name=\"lineId\"/>\n"
#~ " <key-property name=\"orderId\"/>\n"
#~ " <key-property name=\"customerId\"/>\n"
#~ " </composite-id>\n"
#~ " \n"
#~ " <property name=\"name\"/>\n"
#~ " \n"
#~ " <many-to-one name=\"order\" class=\"Order\"\n"
#~ " insert=\"false\" update=\"false\">\n"
#~ " <column name=\"orderId\"/>\n"
#~ " <column name=\"customerId\"/>\n"
#~ " </many-to-one>\n"
#~ " ....\n"
#~ " \n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<many-to-one name=\"orderLine\" class=\"OrderLine\">\n"
#~ "<!-- the \"class\" attribute is optional, as usual -->\n"
#~ " <column name=\"lineId\"/>\n"
#~ " <column name=\"orderId\"/>\n"
#~ " <column name=\"customerId\"/>\n"
#~ "</many-to-one>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<set name=\"undeliveredOrderLines\">\n"
#~ " <key column name=\"warehouseId\"/>\n"
#~ " <many-to-many class=\"OrderLine\">\n"
#~ " <column name=\"lineId\"/>\n"
#~ " <column name=\"orderId\"/>\n"
#~ " <column name=\"customerId\"/>\n"
#~ " </many-to-many>\n"
#~ "</set>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<set name=\"orderLines\" inverse=\"true\">\n"
#~ " <key>\n"
#~ " <column name=\"orderId\"/>\n"
#~ " <column name=\"customerId\"/>\n"
#~ " </key>\n"
#~ " <one-to-many class=\"OrderLine\"/>\n"
#~ "</set>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[\n"
#~ " <column name=\"lineId\"/>\n"
#~ " <column name=\"orderId\"/>\n"
#~ " <column name=\"customerId\"/>\n"
#~ " </key>\n"
#~ " <list-index column=\"attemptId\" base=\"1\"/>\n"
#~ " <composite-element class=\"DeliveryAttempt\">\n"
#~ " ...\n"
#~ " </composite-element>\n"
#~ " </set>\n"
#~ "</class>]]>"
#~ msgstr ""
#~ "<class name=\"OrderLine\">\n"
#~ " ....\n"
#~ " ....\n"
#~ " <list name=\"deliveryAttempts\">\n"
#~ " <key> <!-- a collection inherits the composite key "
#~ "type -->\n"
#~ " <column name=\"lineId\"/>\n"
#~ " <column name=\"orderId\"/>\n"
#~ " <column name=\"customerId\"/>\n"
#~ " </key>\n"
#~ " <list-index column=\"attemptId\" base=\"1\"/>\n"
#~ " <composite-element class=\"DeliveryAttempt\">\n"
#~ " ...\n"
#~ " </composite-element>\n"
#~ " </set>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<dynamic-component name=\"userAttributes\">\n"
#~ " <property name=\"foo\" column=\"FOO\" type=\"string\"/>\n"
#~ " <property name=\"bar\" column=\"BAR\" type=\"integer\"/>\n"
#~ " <many-to-one name=\"baz\" class=\"Baz\" column=\"BAZ_ID\"/>\n"
#~ "</dynamic-component>"
Other Hibernate examples (source code examples)
Here is a short list of links related to this Hibernate component_mapping.po source code file:
|