|
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
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
#, no-c-format
msgid "Component Mapping"
msgstr "Component 매핑"
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The notion of a <emphasis>component is re-used in several "
"different contexts and purposes throughout Hibernate."
msgstr ""
"<emphasis>componentì˜ ê°œë…ì€ Hibernateì—ì„œ 다른 ìš©ë„ë¡œ 몇몇 다른 "
"컨í…스트들 ë‚´ì—ì„œ 재사용ëœë‹¤."
#. Tag: title
#, no-c-format
msgid "Dependent objects"
msgstr "ì¢…ì† ê°ì²´ë“¤"
#. Tag: para
#, fuzzy, 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 ""
"í•˜ë‚˜ì˜ ì»´í¬ë„ŒíŠ¸ëŠ” 엔티티 참조가 ì•„ë‹Œ, value 타입으로서 ì˜ì†í™” ë˜ëŠ” í•˜ë‚˜ì˜ í¬"
"í•¨ëœ ê°ì²´ì´ë‹¤. \"ì»´í¬ë„ŒíŠ¸\" 용어는 (아키í…처 ìˆ˜ì¤€ì˜ ì»´í¬ë„ŒíŠ¸ë“¤ì´ ì•„ë‹Œ) "
"composition(구성,합성)ì— ëŒ€í•œ ê°ì²´-지향ì ì¸ ê°œë…ì„ ì–¸ê¸‰í•œë‹¤. 예를 들어 ë‹¹ì‹ "
"ì€ ë‹¤ìŒê³¼ ê°™ì´ ê°œì¸ì„ 모형화 시킬 ìˆ˜ë„ ìžˆë‹¤:"
#. Tag: para
#, fuzzy, 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
#, fuzzy, no-c-format
msgid "Our Hibernate mapping would look like this:"
msgstr "ìš°ë¦¬ì˜ Hibernate ë§¤í•‘ì€ ë‹¤ìŒê³¼ ê°™ì„ ê²ƒì´ë‹¤:"
#. 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. í¬í•¨ëœ "
"ê°ì²´ë¥¼ 다시 로드시킬 ë•Œ, Hibernate는 ëª¨ë“ ì»´í¬ë„ŒíŠ¸ ì»¬ëŸ¼ë“¤ì´ nullì¼ ê²½ìš°ì— ì „"
"ì²´ ì»´í¬ë„ŒíŠ¸ê°€ nullì´ë¼ê³ ê°€ì •í• ê²ƒì´ë‹¤. ì´ê²ƒì€ ëŒ€ë¶€ë¶„ì˜ ìš©ë„ì— ë§žì„ ê²ƒì´ë‹¤."
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The properties of a component can be of any Hibernate type (collections, "
"many-to-one associations, other components, etc). Nested components should "
"<emphasis>not 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> "
"서브요소를 허용한다."
#. Tag: title
#, no-c-format
msgid "Collections of dependent objects"
msgstr "ì¢…ì† ê°ì²´ë“¤ì„ 가진 ì½œë ‰ì…˜ë“¤"
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Collections of components are supported (e.g. an array of type "
"<literal>Name). Declare your component collection by replacing the "
"<literal><element> tag with a <composite-"
"element></literal> tag:"
msgstr ""
"ì»´í¬ë„ŒíŠ¸ë“¤ì„ 가진 ì½œë ‰ì…˜ë“¤ì´ ì§€ì›ëœë‹¤(예를 들면 <literal>Name 타입"
"ì„ ê°€ì§„ ë°°ì—´). <literal><element> 태그를 <"
"composite-element></literal> 태그로 대체시켜서 ë‹¹ì‹ ì˜ ì»´í¬ë„ŒíŠ¸ ì½œë ‰ì…˜ì„ ì„ "
"언하ë¼."
#. Tag: para
#, fuzzy, 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
#, fuzzy, 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 ""
"Composite ìš”ì†Œë“¤ì€ ì»´í¬ë„ŒíŠ¸ë“¤ì„ í¬í•¨í•˜ì§€ë§Œ ì½œë ‰ì…˜ë“¤ì„ í¬í•¨í•˜ì§€ 않는다. ë§Œì¼ "
"ë‹¹ì‹ ì˜ composite 요소 ìžì²´ê°€ ì»´í¬ë„ŒíŠ¸ë“¤ì„ í¬í•¨í• 경우, <literal><nested-"
"composite-element></literal> 태그를 사용하ë¼. ì´ê²ƒì€ 꽤 ì‹ ì¢…ì˜ ê²½ìš°-그것"
"들 ìžì²´ê°€ ì»´í¬ë„ŒíŠ¸ë“¤ì„ ê°–ê³ ìžˆëŠ” ì»´í¬ë„ŒíŠ¸ë“¤ì˜ ì½œë ‰ì…˜-ì´ë‹¤. ì´ ë‹¨ê³„ì—ì„œ ë‹¹ì‹ "
"ì€ one-to-many ì—°ê´€ì´ ë” ì ì ˆí•œì§€ë¥¼ ë‹¹ì‹ ìŠ¤ìŠ¤ë¡œì—게 질문하게 ë 것ì´ë‹¤. 하나"
"ì˜ ì—”í‹°í‹°ë¡œì„œ composite 요소를 다시 모ë¸ë§í•˜ë ¤ê³ ì‹œë„í•˜ë¼ - 그러나 ìžë°” 모형"
"ë“¤ì´ ë™ì¼í• 지ë¼ë„, 관계형 모형과 ì˜ì†í™” ì˜ë¯¸ë“¤ì€ ì—¬ì „ížˆ 약간 다르다."
#. Tag: para
#, fuzzy, 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>ì„ ì‚¬ìš© 중ì´ë¼ë©´, í•˜ë‚˜ì˜ "
"composite 요소 ë§¤í•‘ì€ null 가능한 프로í¼í‹°ë“¤ì„ 지ì›í•˜ì§€ ì•ŠìŒì„ 노트하길 바란"
"다. Hibernate는 ê°ì²´ë“¤ì„ ì‚ì œí• ë•Œ í•˜ë‚˜ì˜ ë ˆì½”ë“œë¥¼ ì‹ë³„í•˜ëŠ”ë° ê°ê°ì˜ 컬럼들 "
"ê°’ì„ ì‚¬ìš©í•´ì•¼ 하며 (composite 요소 í…Œì´ë¸” ë‚´ì— ë³„ë„ì˜ í”„ë¼ì´ë¨¸ë¦¬ 키 ì»¬ëŸ¼ì´ ì¡´"
"재하지 않는다), ê·¸ê²ƒì€ null ê°’ë“¤ì— ëŒ€í•´ì„œëŠ” 불가능하다. ë‹¹ì‹ ì€ í•˜ë‚˜ì˜ "
"composite-요소 ë‚´ì— not-null 프로í¼í‹°ë“¤ ë§Œì„ ì‚¬ìš©í•´ì•¼ 하거나 í•˜ë‚˜ì˜ "
"<literal><list>, <map>, "
"<literal><bag> ë˜ëŠ” <idbag>ì„ ì„ íƒí•´"
"야 한다."
#. Tag: para
#, fuzzy, 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 ""
"composite ìš”ì†Œì— ëŒ€í•œ í•˜ë‚˜ì˜ íŠ¹ë³„í•œ 경우는 ë‚´í¬ëœ <literal><many-to-"
"one></literal> 요소를 가진 composite 요소ì´ë‹¤. ì´ê°™ì€ ë§¤í•‘ì€ many-to-many "
"ì—°ê´€ í…Œì´ë¸”ì˜ íŠ¹ë³„í•œ ì»¬ëŸ¼ë“¤ì„ composite 요소 í´ëž˜ìŠ¤ë¡œ 매핑시키는 ê²ƒì„ ë‹¹ì‹ ì—"
"게 허용해준다. 다ìŒì€ <literal>Order로부터 Item"
"ìœ¼ë¡œì˜ many-to-many ì—°ê´€ì´ë‹¤. 여기서 <literal>purchaseDate, "
"<literal>price, ê·¸ë¦¬ê³ quantity는 ì—°ê´€ì˜ í”„ë¡œí¼"
"티들ì´ë‹¤:"
#. Tag: para
#, fuzzy, 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ì— ëŒ€í•œ 참조"
"ê°€ ì¡´ìž¬í• ìˆ˜ 없다. ì»´í¬ë„ŒíŠ¸ë“¤ì´ ê°’(value) 타입들ì´ê³ ê³µìœ ëœ ì°¸ì¡°ë“¤ì„ í—ˆìš©í•˜"
"지 ì•ŠìŒì„ 기억하ë¼. í•˜ë‚˜ì˜ <literal>Purchase는OrderItem 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> 요소는 ë‹¹ì‹ ì—게 í•˜ë‚˜ì˜ ì»´í¬ë„ŒíŠ¸ "
"í´ëž˜ìŠ¤ë¥¼ í•˜ë‚˜ì˜ <literal>Mapì˜ í‚¤ë¡œì„œ 매핑시키ë„ë¡ í•œë‹¤. ë‹¹ì‹ ì€ ì»´"
"í¬ë„ŒíŠ¸ í´ëž˜ìŠ¤ ìƒì—ì„œ <literal>hashCode()와 equals()."
msgstr "ê·¸ê²ƒì€ <literal>java.io.Serializableì„ êµ¬í˜„í•´ì•¼ 한다."
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"It must re-implement <literal>equals() and hashCode()와 hashCode()를 다시 구현해야 "
"한다."
#. Tag: title
#, no-c-format
msgid "Note"
msgstr ""
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"In Hibernate3, although the second requirement is not an absolutely hard "
"requirement of Hibernate, it is recommended."
msgstr ""
"노트: Hibernate3ì—ì„œ, ë‘ ë²ˆì§¸ ì‚¬ì–‘ì€ Hibernateì˜ ì ˆëŒ€ì 으로 엄격한 ì‚¬ì–‘ì´ ì•„"
"니다. 그러나 아무튼 ê·¸ê²ƒì„ í–‰í•˜ë¼."
#. Tag: para
#, fuzzy, no-c-format
msgid ""
"You cannot use an <literal>IdentifierGenerator to generate "
"composite keys. Instead the application must assign its own identifiers."
msgstr ""
"ë‹¹ì‹ ì€ compsite í‚¤ë“¤ì„ ìƒì„±ì‹œí‚¤ëŠ”ë° <literal>IdentifierGenerator를 "
"ì‚¬ìš©í• ìˆ˜ 없다. ëŒ€ì‹ ì— ì–´í”Œë¦¬ì¼€ì´ì…˜ì€ 그것 ìžì‹ ì˜ ì‹ë³„ìžë“¤ì„ í• ë‹¹í•´ì•¼ 한다."
#. Tag: para
#, fuzzy, 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> ì„ ì–¸ ìœ„ì¹˜ì— (ë‚´í¬ëœ <key-"
"property></literal> ìš”ì†Œë“¤ì„ ê°€ì§„) <composite-id>OrderLine í´ëž˜ìŠ¤ëŠ” "
"<literal>Orderì˜ (composite) 프ë¼ì´ë¨¸ë¦¬ í‚¤ì— ì˜ì¡´í•˜ëŠ” 프ë¼ì´ë¨¸ë¦¬ 키"
"를 갖는다."
#. Tag: para
#, fuzzy, 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 í…Œì´ë¸”ì„ ì°¸ì¡°í•˜ëŠ” ìž„ì˜ì˜ foreign í‚¤ë“¤ì´ ë˜"
"í•œ compsiteì´ë‹¤. ë‹¹ì‹ ì€ ë‹¤ë¥¸ í´ëž˜ìŠ¤ë“¤ì— 대한 ë‹¹ì‹ ì˜ ë§¤í•‘ë“¤ ì†ì— ì´ê²ƒì„ ì„ ì–¸í•´"
"야 한다. <literal>OrderLineì— ëŒ€í•œ í•˜ë‚˜ì˜ ì—°ê´€ì€ ë‹¤ìŒê³¼ ê°™ì´ ë§¤í•‘"
"ë 것ì´ë‹¤:"
#. Tag: para
#, no-c-format
msgid ""
"The <literal>column element is an alternative to the "
"<literal>column attribute everywhere. Using the column"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"A <literal>many-to-many association to OrderLineì— ëŒ€í•œ many-to-many ì—°ê´€ì€ ë˜"
"한 composite foreign 키를 사용한다:"
#. Tag: para
#, no-c-format
msgid ""
"The collection of <literal>OrderLines in Order "
"would use:"
msgstr ""
"<literal>Orderì—ì„œ OrderLineë“¤ì˜ ì½œë ‰ì…˜ì´ ì‚¬ìš©"
"ë 것ì´ë‹¤:"
#. Tag: para
#, fuzzy, 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 ìžì²´ê°€ í•˜ë‚˜ì˜ ì½œë ‰ì…˜ì„ ì†Œìœ í• ê²½ìš°, ê·¸ê²ƒì€ "
"ë˜í•œ í•˜ë‚˜ì˜ composite foreign 키를 갖는다."
#. Tag: title
#, no-c-format
msgid "Dynamic components"
msgstr "ë™ì ì¸ ì»´í¬ë„ŒíŠ¸ë“¤"
#. Tag: para
#, fuzzy, no-c-format
msgid "You can also map a property of type <literal>Map:"
msgstr "ë‹¹ì‹ ì€ <literal>Map íƒ€ìž…ì˜ í”„ë¡œí¼í‹°ë¥¼ 매핑시킬 ìˆ˜ë„ ìžˆë‹¤:"
#. Tag: para
#, fuzzy, 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> ë§¤í•‘ì˜ ì˜ë¯¸ëŠ” <"
"component></literal>와 ë™ì¼í•˜ë‹¤. ì´ëŸ° ì¢…ë¥˜ì˜ ë§¤í•‘ì˜ ìž¥ì ì€ ë°°ì¹˜ ì‹œì— ë‹¨ì§€ "
"매핑 문서를 íŽ¸ì§‘í•¨ìœ¼ë¡œì¨ ê·¸ beanì˜ ì‹¤ì œ 프로í¼í‹°ë“¤ì„ ê²°ì •í•˜ëŠ” 가용성ì´ë‹¤. 매"
"í•‘ ë¬¸ì„œì— ëŒ€í•œ 런타임 처리는 ë˜í•œ DOM 파서를 사용하여 가능하다. ë” ì¢‹ê²ŒëŠ” 당"
"ì‹ ì´ <literal>Configuration ê°ì²´ë¥¼ 통해 Hibernateì˜ êµ¬ì„±-ì‹œ 메타모"
"í˜•ì— ì ‘ê·¼í• ìˆ˜ 있다(ê·¸ë¦¬ê³ ë³€ê²½ì‹œí‚¬ 수 있다)"
#~ msgid ""
#~ "(Note that the <literal><column> tag is an alternative to "
#~ "the <literal>column attribute everywhere.)"
#~ msgstr ""
#~ "(<literal><column> 태그가 ëª¨ë“ ê³³ì—ì„œ column
Other Hibernate examples (source code examples)
Here is a short list of links related to this Hibernate component_mapping.po source code file:
|