|
Hibernate example source code file (inheritance_mapping.po)
This example Hibernate source code file (inheritance_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 inheritance_mapping.po source code
# translation of Collection_Mapping.po to
# Xi Huang <xhuang@redhat.com>, 2006.
# Xi HUANG <xhuang@redhat.com>, 2007.
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-03-15 09:06+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 "Inheritance mapping"
msgstr "ç»§æ‰¿æ˜ å°„ï¼ˆInheritance Mapping) "
#. Tag: title
#, no-c-format
msgid "The three strategies"
msgstr "三ç§ç–ç•¥ "
#. Tag: para
#, no-c-format
msgid "Hibernate supports the three basic inheritance mapping strategies:"
msgstr "Hibernate 支æŒä¸‰ç§åŸºæœ¬çš„ç»§æ‰¿æ˜ å°„ç–略:"
#. Tag: para
#, no-c-format
msgid "table per class hierarchy"
msgstr "æ¯ä¸ªç±»åˆ†å±‚ç»“æž„ä¸€å¼ è¡¨ï¼ˆtable per class hierarchy)"
#. Tag: para
#, no-c-format
msgid "table per subclass"
msgstr "æ¯ä¸ªåç±»ä¸€å¼ è¡¨ï¼ˆTable per subclass) "
#. Tag: para
#, no-c-format
msgid "table per concrete class"
msgstr "æ¯ä¸ªå…·ä½“ç±»ä¸€å¼ è¡¨ï¼ˆtable per concrete class)"
#. Tag: para
#, no-c-format
msgid "In addition, Hibernate supports a fourth, slightly different kind of polymorphism:"
msgstr "æ¤å¤–,Hibernate 还支æŒç¬¬å››ç§ç¨æœ‰ä¸åŒçš„多æ€æ˜ å°„ç–略:"
#. Tag: para
#, no-c-format
msgid "implicit polymorphism"
msgstr "éšå¼å¤šæ€ï¼ˆimplicit polymorphism)"
#. Tag: para
#, no-c-format
msgid "It is possible to use different mapping strategies for different branches of the same inheritance hierarchy. You can then make use of implicit polymorphism to achieve polymorphism across the whole hierarchy. However, Hibernate does not support mixing <literal><subclass>, <joined-subclass> and <union-subclass> mappings under the same root <class> element. It is possible to mix together the table per hierarchy and table per subclass strategies under the the same <class> element, by combining the <subclass> and <join> elements (see below for an example)."
msgstr "对于åŒä¸€ä¸ªç»§æ‰¿å±‚次内的ä¸åŒåˆ†æ”¯ï¼Œå¯ä»¥é‡‡ç”¨ä¸åŒçš„æ˜ å°„ç–略,然åŽç”¨éšå¼å¤š æ€æ¥å®Œæˆè·¨è¶Šæ•´ä¸ªå±‚次的多æ€ã€‚但是在åŒä¸€ä¸ª <literal><class> æ ¹å…ƒç´ ä¸‹ï¼ŒHibernate ä¸æ”¯æŒæ··åˆäº†å…ƒç´ <subclass>ã€<joined-subclass> å’Œ <union-subclass> çš„æ˜ å°„ã€‚åœ¨åŒä¸€ä¸ª <class> å…ƒç´ ä¸‹ï¼Œå¯ä»¥æ··åˆä½¿ç”¨â€œæ¯ä¸ªç±»åˆ†å±‚ç»“æž„ä¸€å¼ è¡¨â€ï¼ˆtable per hierarchy)和“æ¯ä¸ªåç±»ä¸€å¼ è¡¨â€ï¼ˆtable per subclass) 这两ç§æ˜ å°„ç–略,这是通过结åˆå…ƒç´ <subclass> å’Œ <join> æ¥å®žçŽ°çš„(è§åŽï¼‰ã€‚ "
#. Tag: para
#, no-c-format
msgid "It is possible to define <literal>subclass, union-subclass, and joined-subclass mappings in separate mapping documents directly beneath hibernate-mapping. This allows you to extend a class hierarchy by adding a new mapping file. You must specify an extends attribute in the subclass mapping, naming a previously mapped superclass. Previously this feature made the ordering of the mapping documents important. Since Hibernate3, the ordering of mapping files is irrelevant when using the extends keyword. The ordering inside a single mapping file still needs to be defined as superclasses before subclasses."
msgstr "åœ¨å¤šä¸ªæ˜ å°„æ–‡ä»¶ä¸ï¼Œå¯ä»¥ç›´æŽ¥åœ¨ <literal>hibernate-mapping æ ¹ä¸‹å®šä¹‰ subclass,union-subclass å’Œ joined-subclassã€‚ä¹Ÿå°±æ˜¯è¯´ï¼Œä½ å¯ä»¥ä»…åŠ å…¥ä¸€ä¸ªæ–°çš„æ˜ å°„æ–‡ä»¶æ¥æ‰©å±•ç±»å±‚æ¬¡ã€‚ä½ å¿…é¡»åœ¨ subclass çš„æ˜ å°„ä¸æŒ‡æ˜Ž extends 属性,给出一个之å‰å®šä¹‰çš„超类的åå—。注æ„,在以å‰ï¼Œè¿™ä¸€åŠŸèƒ½å¯¹æ˜ 射文件的顺åºæœ‰ä¸¥æ ¼çš„è¦æ±‚,从 Hibernate 3 开始,使用 extends 关键å—çš„æ—¶ä¾¯ï¼Œå¯¹æ˜ å°„æ–‡ä»¶çš„é¡ºåºä¸å†æœ‰è¦æ±‚;但在æ¯ä¸ªæ˜ 射文件里,超类必须在å类之å‰å®šä¹‰ã€‚ "
#. Tag: title
#, no-c-format
msgid "Table per class hierarchy"
msgstr "æ¯ä¸ªç±»åˆ†å±‚ç»“æž„ä¸€å¼ è¡¨ï¼ˆTable per class hierarchy)"
#. Tag: para
#, no-c-format
msgid "Suppose we have an interface <literal>Payment with the implementors CreditCardPayment, CashPayment, and ChequePayment. The table per hierarchy mapping would display in the following way:"
msgstr "å‡è®¾æˆ‘们有接å£<literal>Paymentå’Œå®ƒçš„å‡ ä¸ªå®žçŽ°ç±»ï¼š CreditCardPayment, CashPayment å’ŒChequePayment。则“æ¯ä¸ªç±»åˆ†å±‚ç»“æž„ä¸€å¼ è¡¨â€ï¼ˆTable per class hierarchyï¼‰çš„æ˜ å°„ä»£ç 如下所示: "
#. Tag: para
#, no-c-format
msgid "Exactly one table is required. There is a limitation of this mapping strategy: columns declared by the subclasses, such as <literal>CCTYPE, cannot have NOT NULL constraints."
msgstr "采用这ç§ç–ç•¥åªéœ€è¦ä¸€å¼ 表å³å¯ã€‚它有一个很大的é™åˆ¶ï¼šè¦æ±‚那些由å类定义的å—段, 如 <literal>CCTYPE,ä¸èƒ½æœ‰éžç©ºï¼ˆNOT NULL)约æŸã€‚ "
#. Tag: title
#, no-c-format
msgid "Table per subclass"
msgstr "æ¯ä¸ªåç±»ä¸€å¼ è¡¨ï¼ˆTable per subclass)"
#. Tag: para
#, no-c-format
msgid "A table per subclass mapping looks like this:"
msgstr " 对于上例ä¸çš„å‡ ä¸ªç±»è€Œè¨€ï¼Œé‡‡ç”¨â€œæ¯ä¸ªåç±»ä¸€å¼ è¡¨â€çš„æ˜ å°„ç–略,代ç 如下所示:"
#. Tag: para
#, no-c-format
msgid "Four tables are required. The three subclass tables have primary key associations to the superclass table so the relational model is actually a one-to-one association."
msgstr "需è¦å››å¼ 表。三个å类表通过主键关è”åˆ°è¶…ç±»è¡¨ï¼ˆå› è€Œå…³ç³»æ¨¡åž‹å®žé™…ä¸Šæ˜¯ä¸€å¯¹ä¸€å…³è”)。 "
#. Tag: title
#, no-c-format
msgid "Table per subclass: using a discriminator"
msgstr "æ¯ä¸ªåç±»ä¸€å¼ è¡¨ï¼ˆTable per subclassï¼‰ï¼Œä½¿ç”¨è¾¨åˆ«æ ‡å¿—ï¼ˆDiscriminator) "
#. Tag: para
#, no-c-format
msgid "Hibernate's implementation of table per subclass does not require a discriminator column. Other object/relational mappers use a different implementation of table per subclass that requires a type discriminator column in the superclass table. The approach taken by Hibernate is much more difficult to implement, but arguably more correct from a relational point of view. If you want to use a discriminator column with the table per subclass strategy, you can combine the use of <literal><subclass> and <join>, as follows:"
msgstr "注æ„,对“æ¯ä¸ªåç±»ä¸€å¼ è¡¨â€çš„æ˜ å°„ç–略,Hibernate 的实现ä¸éœ€è¦è¾¨åˆ«å—段,而其他的对象ï¼å…³ç³»æ˜ 射工具使用了一ç§ä¸åŒäºŽHibernate的实现方法,该方法è¦æ±‚在超类表ä¸æœ‰ä¸€ä¸ªç±»åž‹è¾¨åˆ«å—段(type discriminator column)。Hibernate 采用的方法更难实现,但从关系(数æ®åº“)的角度æ¥çœ‹ï¼ŒæŒ‰ç†è¯´å®ƒæ›´æ£ç¡®ã€‚è‹¥ä½ æ„¿æ„使用带有辨别å—段的“æ¯ä¸ªåç±»ä¸€å¼ è¡¨â€çš„ç–ç•¥ï¼Œä½ å¯ä»¥ç»“åˆä½¿ç”¨ <literal><subclass> 与<join>,如下所示: "
#. Tag: para
#, no-c-format
msgid "The optional <literal>fetch=\"select\" declaration tells Hibernate not to fetch the ChequePayment subclass data using an outer join when querying the superclass."
msgstr "å¯é€‰çš„声明 <literal>fetch=\"select\",是用æ¥å‘Šè¯‰ Hibernate,在查询超类时,ä¸è¦ä½¿ç”¨å¤–部连接(outer join)æ¥æŠ“å–åç±» ChequePayment çš„æ•°æ®ã€‚"
#. Tag: title
#, no-c-format
msgid "Mixing table per class hierarchy with table per subclass"
msgstr "æ··åˆä½¿ç”¨â€œæ¯ä¸ªç±»åˆ†å±‚ç»“æž„ä¸€å¼ è¡¨â€å’Œâ€œæ¯ä¸ªåç±»ä¸€å¼ è¡¨â€"
#. Tag: para
#, no-c-format
msgid "You can even mix the table per hierarchy and table per subclass strategies using the following approach:"
msgstr "ä½ ç”šè‡³å¯ä»¥é‡‡å–如下方法混和使用“æ¯ä¸ªç±»åˆ†å±‚ç»“æž„ä¸€å¼ è¡¨â€å’Œâ€œæ¯ä¸ªåç±»ä¸€å¼ è¡¨â€è¿™ä¸¤ç§ç–略: "
#. Tag: para
#, no-c-format
msgid "For any of these mapping strategies, a polymorphic association to the root <literal>Payment class is mapped using <many-to-one>."
msgstr "对上述任何一ç§æ˜ å°„ç–略而言,指å‘æ ¹ç±» <literal>Payment çš„å…³è”是使用 <many-to-one> è¿›è¡Œæ˜ å°„çš„ã€‚"
#. Tag: title
#, no-c-format
msgid "Table per concrete class"
msgstr "æ¯ä¸ªå…·ä½“ç±»ä¸€å¼ è¡¨ï¼ˆTable per concrete class)"
#. Tag: para
#, no-c-format
msgid "There are two ways we can map the table per concrete class strategy. First, you can use <literal><union-subclass>."
msgstr "对于“æ¯ä¸ªå…·ä½“ç±»ä¸€å¼ è¡¨â€çš„æ˜ å°„ç–略,å¯ä»¥é‡‡ç”¨ä¸¤ç§æ–¹æ³•ã€‚第一ç§æ–¹æ³•æ˜¯ä½¿ç”¨ <literal><union-subclass>。 "
#. Tag: para
#, no-c-format
msgid "Three tables are involved for the subclasses. Each table defines columns for all properties of the class, including inherited properties."
msgstr "这里涉åŠä¸‰å¼ 与å类相关的表。æ¯å¼ 表为对应类的所有属性(包括从超类继承的属性)定义相应å—段。"
#. Tag: para
#, no-c-format
msgid "The limitation of this approach is that if a property is mapped on the superclass, the column name must be the same on all subclass tables. The identity generator strategy is not allowed in union subclass inheritance. The primary key seed has to be shared across all unioned subclasses of a hierarchy."
msgstr "è¿™ç§æ–¹å¼çš„å±€é™åœ¨äºŽï¼Œå¦‚果一个属性在超类ä¸åšäº†æ˜ 射,其å—段å必须与所有å类表ä¸å®šä¹‰çš„相åŒã€‚(我们å¯èƒ½ä¼šåœ¨ Hibernate çš„åŽç»å‘布版本ä¸æ”¾å®½æ¤é™åˆ¶ã€‚)ä¸å…许在è”åˆå类(union subclass)的继承层次ä¸ä½¿ç”¨æ ‡è¯†ç”Ÿæˆå™¨ç–略(identity generator strategy),实际上,主键的ç§å(primary key seed)ä¸å¾—ä¸ä¸ºåŒä¸€ç»§æ‰¿å±‚次ä¸çš„全部被è”åˆå类所共用。 "
#. Tag: para
#, no-c-format
msgid "If your superclass is abstract, map it with <literal>abstract=\"true\". If it is not abstract, an additional table (it defaults to PAYMENT in the example above), is needed to hold instances of the superclass."
msgstr "å‡è‹¥è¶…类是抽象类,请使用 <literal>abstract=\"true\"。当然,å‡è‹¥å®ƒä¸æ˜¯æŠ½è±¡çš„,需è¦ä¸€ä¸ªé¢å¤–的表(上é¢çš„例åä¸ï¼Œé»˜è®¤æ˜¯ PAYMENT),æ¥ä¿å˜è¶…类的实例。 "
#. Tag: title
#, no-c-format
msgid "Table per concrete class using implicit polymorphism"
msgstr "æ¯ä¸ªå…·ä½“ç±»ä¸€å¼ è¡¨ï¼Œä½¿ç”¨éšå¼å¤šæ€ "
#. Tag: para
#, no-c-format
msgid "An alternative approach is to make use of implicit polymorphism:"
msgstr "å¦ä¸€ç§å¯ä¾›é€‰æ‹©çš„方法是采用éšå¼å¤šæ€ï¼š"
#. Tag: para
#, no-c-format
msgid "Notice that the <literal>Payment interface is not mentioned explicitly. Also notice that properties of Payment are mapped in each of the subclasses. If you want to avoid duplication, consider using XML entities (for example, [ <!ENTITY allproperties SYSTEM \"allproperties.xml\"> ] in the DOCTYPE declaration and &allproperties; in the mapping)."
msgstr "请注æ„,这里没有显性地æåŠ <literal>Payment 接å£ã€‚Payment çš„å±žæ€§æ˜ å°„åˆ°æ¯ä¸ªåç±»ã€‚å¦‚æžœä½ æƒ³é¿å…é‡å¤ï¼Œè¯·è€ƒè™‘使用 XML 实体(如:DOCTYPE 声明里的 [ <!ENTITY allproperties SYSTEM \"allproperties.xml\"> ] å’Œæ˜ å°„é‡Œçš„ &allproperties;)。 "
#. Tag: para
#, no-c-format
msgid "The disadvantage of this approach is that Hibernate does not generate SQL <literal>UNIONs when performing polymorphic queries."
msgstr "è¿™ç§æ–¹æ³•çš„缺陷在于,在 Hibernate 执行多æ€æŸ¥è¯¢æ—¶ï¼ˆpolymorphic queriesï¼‰æ— æ³•ç”Ÿæˆå¸¦ <literal>UNION çš„ SQL è¯å¥ã€‚ "
#. Tag: para
#, no-c-format
msgid "For this mapping strategy, a polymorphic association to <literal>Payment is usually mapped using <any>."
msgstr "对于这ç§æ˜ å°„ç–略而言,通常用 <literal><any> æ¥å®žçŽ°åˆ° Payment 的多æ€å…³è”æ˜ å°„ã€‚"
#. Tag: title
#, no-c-format
msgid "Mixing implicit polymorphism with other inheritance mappings"
msgstr "éšå¼å¤šæ€å’Œå…¶ä»–ç»§æ‰¿æ˜ å°„æ··åˆä½¿ç”¨"
#. Tag: para
#, no-c-format
msgid "Since the subclasses are each mapped in their own <literal><class> element, and since Payment is just an interface), each of the subclasses could easily be part of another inheritance hierarchy. You can still use polymorphic queries against the Payment interface."
msgstr "å¯¹è¿™ä¸€æ˜ å°„è¿˜æœ‰ä¸€ç‚¹éœ€è¦æ³¨æ„ã€‚å› ä¸ºæ¯ä¸ªå类都在å„è‡ªç‹¬ç«‹çš„å…ƒç´ <literal><class> ä¸æ˜ 射(并且 Payment åªæ˜¯ä¸€ä¸ªæŽ¥å£ï¼‰ï¼Œæ¯ä¸ªåç±»å¯ä»¥å¾ˆå®¹æ˜“çš„æˆä¸ºå¦ä¸€ä¸ªç»§æ‰¿ä½“ç³»ä¸çš„一部分ï¼ï¼ˆä½ ä»ç„¶å¯ä»¥å¯¹æŽ¥å£ Payment 使用多æ€æŸ¥è¯¢ã€‚) "
#. Tag: para
#, no-c-format
msgid "Once again, <literal>Payment is not mentioned explicitly. If we execute a query against the Payment interface, for example from Payment, Hibernate automatically returns instances of CreditCardPayment (and its subclasses, since they also implement Payment), CashPayment and ChequePayment, but not instances of NonelectronicTransaction."
msgstr "我们还是没有明确的æ到 <literal>Paymentã€‚å¦‚æžœæˆ‘ä»¬é’ˆå¯¹æŽ¥å£ Payment 执行查询 — 如 from Payment — Hibernate 自动返回 CreditCardPayment(和它的åç±»ï¼Œå› ä¸º å®ƒä»¬ä¹Ÿå®žçŽ°äº†æŽ¥å£ Payment)ã€CashPayment å’Œ Chequepayment 的实例,但ä¸è¿”回 NonelectronicTransaction 的实例。 "
#. Tag: title
#, no-c-format
msgid "Limitations"
msgstr "é™åˆ¶"
#. Tag: para
#, no-c-format
msgid "There are limitations to the \"implicit polymorphism\" approach to the table per concrete-class mapping strategy. There are somewhat less restrictive limitations to <literal><union-subclass> mappings."
msgstr "对“æ¯ä¸ªå…·ä½“ç±»æ˜ å°„ä¸€å¼ è¡¨â€ï¼ˆtable per concrete-classï¼‰çš„æ˜ å°„ç–略而言,éšå¼å¤šæ€çš„æ–¹å¼æœ‰ä¸€å®šçš„é™åˆ¶ã€‚而 <literal><union-subclass> æ˜ å°„çš„é™åˆ¶åˆ™æ²¡æœ‰é‚£ä¹ˆä¸¥æ ¼ã€‚ "
#. Tag: para
#, no-c-format
msgid "The following table shows the limitations of table per concrete-class mappings, and of implicit polymorphism, in Hibernate."
msgstr "下é¢è¡¨æ ¼ä¸åˆ—出了在 Hibernte ä¸â€œæ¯ä¸ªå…·ä½“ç±»ä¸€å¼ è¡¨â€çš„ç–略和éšå¼å¤šæ€çš„é™åˆ¶ã€‚"
#. Tag: title
#, no-c-format
msgid "Features of inheritance mappings"
msgstr "ç»§æ‰¿æ˜ å°„ç‰¹æ€§ï¼ˆFeatures of inheritance mappings)"
#. Tag: entry
#, no-c-format
msgid "Inheritance strategy"
msgstr "继承ç–略(Inheritance strategy)"
#. Tag: entry
#, no-c-format
msgid "Polymorphic many-to-one"
msgstr "多æ€å¤šå¯¹å¤š "
#. Tag: entry
#, no-c-format
msgid "Polymorphic one-to-one"
msgstr "多æ€ä¸€å¯¹ä¸€"
#. Tag: entry
#, no-c-format
msgid "Polymorphic one-to-many"
msgstr "多æ€ä¸€å¯¹å¤š"
#. Tag: entry
#, no-c-format
msgid "Polymorphic many-to-many"
msgstr "多æ€å¤šå¯¹å¤š"
#. Tag: entry
#, no-c-format
msgid "Polymorphic <literal>load()/get()"
msgstr "Polymorphic <literal>load()/get()"
#. Tag: entry
#, no-c-format
msgid "Polymorphic queries"
msgstr "多æ€æŸ¥è¯¢"
#. Tag: entry
#, no-c-format
msgid "Polymorphic joins"
msgstr "多æ€è¿žæŽ¥ï¼ˆjoin)"
#. Tag: entry
#, no-c-format
msgid "Outer join fetching"
msgstr "支æŒå¤–连接(Outer join)读å–。 "
#. Tag: entry
#, no-c-format
msgid "table per class-hierarchy"
msgstr "æ¯ä¸ªç±»åˆ†å±‚ç»“æž„ä¸€å¼ è¡¨ï¼ˆtable per class hierarchy) "
#. Tag: entry
#, no-c-format
msgid "<literal><many-to-one>"
msgstr "<literal><many-to-one>"
#. Tag: entry
#, no-c-format
msgid "<literal><one-to-one>"
msgstr "<literal><one-to-one>"
#. Tag: entry
#, no-c-format
msgid "<literal><one-to-many>"
msgstr "<literal><one-to-many>"
#. Tag: entry
#, no-c-format
msgid "<literal><many-to-many>"
msgstr "<literal><many-to-many>"
#. Tag: entry
#, no-c-format
msgid "<literal>s.get(Payment.class, id)"
msgstr "<literal>s.get(Payment.class, id)"
#. Tag: entry
#, no-c-format
msgid "<literal>from Payment p"
msgstr "<literal>from Payment p"
#. Tag: entry
#, no-c-format
msgid "<literal>from Order o join o.payment p"
msgstr "<literal>from Order o join o.payment p"
#. Tag: entry
#, no-c-format
msgid "<emphasis>supported"
msgstr "<emphasis>所支æŒçš„"
#. Tag: entry
#, no-c-format
msgid "table per concrete-class (union-subclass)"
msgstr "æ¯ä¸ªå…·ä½“ç±»ä¸€å¼ è¡¨ï¼ˆunion-subclass)"
#. Tag: entry
#, no-c-format
msgid "<literal><one-to-many> (for inverse=\"true\" only)"
msgstr "<literal><one-to-many> (仅适用于 inverse=\"true\")"
#. Tag: entry
#, no-c-format
msgid "table per concrete class (implicit polymorphism)"
msgstr "æ¯ä¸ªå…·ä½“ç±»ä¸€å¼ è¡¨ï¼ˆéšå¼å¤šæ€ï¼‰ "
#. Tag: entry
#, no-c-format
msgid "<literal><any>"
msgstr "<literal><any>"
#. Tag: entry
#, no-c-format
msgid "<emphasis>not supported"
msgstr "<emphasis>ä¸æ”¯æŒçš„"
#. Tag: entry
#, no-c-format
msgid "<literal><many-to-any>"
msgstr "<literal><many-to-any>"
#. Tag: entry
#, no-c-format
msgid "<literal>s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
msgstr "<literal>s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"
#~ msgid "table per class-heirarchy"
#~ msgstr "æ¯ä¸ªç±»åˆ†å±‚ç»“æž„ä¸€å¼ è¡¨ "
#~ msgid "Polymorphic many-to-one: <code><many-to-one>"
#~ msgstr "多æ€æ€§å¤šå¯¹ä¸€ï¼š<code><many-to-one>"
#~ msgid "Polymorphic one-to-one: <code><one-to-one>"
#~ msgstr "多æ€æ€§ä¸€å¯¹ä¸€ï¼š<code><one-to-one>"
#~ msgid "Polymorphic one-to-many: <code><one-to-many>"
#~ msgstr "多æ€æ€§ä¸€å¯¹å¤šï¼š<code><one-to-many>"
#~ msgid "Polymorphic many-to-many: <code><many-to-many>"
#~ msgstr "多æ€æ€§å¤šå¯¹å¤šï¼š<code><many-to-many>"
#~ msgid ""
#~ "Polymorphic <literal>load() or get(): "
#~ "<code>s.get(Payment.class, id)"
#~ msgstr ""
#~ "多æ€æ€§ <literal>load() 或 get():s.get"
#~ "(Payment.class, id)</code>"
#~ msgid "Polymorphic queries: <code>from Payment p "
#~ msgstr "多æ€æ€§æŸ¥è¯¢ï¼š<code>from Payment p"
#~ msgid "Polymorphic many-to-one: <code><any>"
#~ msgstr "多æ€å¤šå¯¹ä¸€ï¼š<code><any>"
#~ msgid ""
#~ "Polymorphic one-to-one, polymorphic one-to-many, polymorphic joins, and "
#~ "outer join fetching are not supported."
#~ msgstr ""
#~ "多æ€æ€§ä¸€å¯¹ä¸€ã€å¤šæ€æ€§ä¸€å¯¹å¤šï¼Œä¸æ”¯æŒå¤šæ€æ€§ join å’Œ outer join fetching。"
#~ msgid "<para>table per subclass"
#~ msgstr "<para>æ¯ä¸ªåç±»ä¸€å¼ è¡¨"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[\n"
#~ " <hibernate-mapping>\n"
#~ " <subclass name=\"DomesticCat\" extends=\"Cat\" discriminator-value="
#~ "\"D\">\n"
#~ " <property name=\"name\" type=\"string\"/>\n"
#~ " </subclass>\n"
#~ " </hibernate-mapping>]]>"
#~ msgstr ""
#~ "<hibernate-mapping>\n"
#~ " <subclass name=\"DomesticCat\" extends=\"Cat\" discriminator-"
#~ "value=\"D\">\n"
#~ " <property name=\"name\" type=\"string\"/>\n"
#~ " </subclass>\n"
#~ " </hibernate-mapping>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Payment\" table=\"PAYMENT\">\n"
#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
#~ " ...\n"
#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT"
#~ "\">\n"
#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
#~ " ...\n"
#~ " </subclass>\n"
#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
#~ " ...\n"
#~ " </subclass>\n"
#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE"
#~ "\">\n"
#~ " ...\n"
#~ " </subclass>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Payment\" table=\"PAYMENT\">\n"
#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
#~ " ...\n"
#~ " <joined-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT"
#~ "\">\n"
#~ " <key column=\"PAYMENT_ID\"/>\n"
#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
#~ " ...\n"
#~ " </joined-subclass>\n"
#~ " <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
#~ " <key column=\"PAYMENT_ID\"/>\n"
#~ " ...\n"
#~ " </joined-subclass>\n"
#~ " <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT"
#~ "\">\n"
#~ " <key column=\"PAYMENT_ID\"/>\n"
#~ " ...\n"
#~ " </joined-subclass>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Payment\" table=\"PAYMENT\">\n"
#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
#~ " ...\n"
#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT"
#~ "\">\n"
#~ " <join table=\"CREDIT_PAYMENT\">\n"
#~ " <key column=\"PAYMENT_ID\"/>\n"
#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
#~ " ...\n"
#~ " </join>\n"
#~ " </subclass>\n"
#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
#~ " <join table=\"CASH_PAYMENT\">\n"
#~ " <key column=\"PAYMENT_ID\"/>\n"
#~ " ...\n"
#~ " </join>\n"
#~ " </subclass>\n"
#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE"
#~ "\">\n"
#~ " <join table=\"CHEQUE_PAYMENT\" fetch=\"select\">\n"
#~ " <key column=\"PAYMENT_ID\"/>\n"
#~ " ...\n"
#~ " </join>\n"
#~ " </subclass>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Payment\" table=\"PAYMENT\">\n"
#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <discriminator column=\"PAYMENT_TYPE\" type=\"string\"/>\n"
#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
#~ " ...\n"
#~ " <subclass name=\"CreditCardPayment\" discriminator-value=\"CREDIT"
#~ "\">\n"
#~ " <join table=\"CREDIT_PAYMENT\">\n"
#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
#~ " ...\n"
#~ " </join>\n"
#~ " </subclass>\n"
#~ " <subclass name=\"CashPayment\" discriminator-value=\"CASH\">\n"
#~ " ...\n"
#~ " </subclass>\n"
#~ " <subclass name=\"ChequePayment\" discriminator-value=\"CHEQUE"
#~ "\">\n"
#~ " ...\n"
#~ " </subclass>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<many-to-one name=\"payment\" column=\"PAYMENT_ID\" class=\"Payment\"/"
#~ ">"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Payment\">\n"
#~ " <id name=\"id\" type=\"long\" column=\"PAYMENT_ID\">\n"
#~ " <generator class=\"sequence\"/>\n"
#~ " </id>\n"
#~ " <property name=\"amount\" column=\"AMOUNT\"/>\n"
#~ " ...\n"
#~ " <union-subclass name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT"
#~ "\">\n"
#~ " <property name=\"creditCardType\" column=\"CCTYPE\"/>\n"
#~ " ...\n"
#~ " </union-subclass>\n"
#~ " <union-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
#~ " ...\n"
#~ " </union-subclass>\n"
#~ " <union-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT"
#~ "\">\n"
#~ " ...\n"
#~ " </union-subclass>\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
#~ " <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
#~ " ...\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
#~ " <id name=\"id\" type=\"long\" column=\"CASH_PAYMENT_ID\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
#~ " ...\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"ChequePayment\" table=\"CHEQUE_PAYMENT\">\n"
#~ " <id name=\"id\" type=\"long\" column=\"CHEQUE_PAYMENT_ID\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
#~ " ...\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<any name=\"payment\" meta-type=\"string\" id-type=\"long\">\n"
#~ " <meta-value value=\"CREDIT\" class=\"CreditCardPayment\"/>\n"
#~ " <meta-value value=\"CASH\" class=\"CashPayment\"/>\n"
#~ " <meta-value value=\"CHEQUE\" class=\"ChequePayment\"/>\n"
#~ " <column name=\"PAYMENT_CLASS\"/>\n"
#~ " <column name=\"PAYMENT_ID\"/>\n"
#~ "</any>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"CreditCardPayment\" table=\"CREDIT_PAYMENT\">\n"
#~ " <id name=\"id\" type=\"long\" column=\"CREDIT_PAYMENT_ID\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <discriminator column=\"CREDIT_CARD\" type=\"string\"/>\n"
#~ " <property name=\"amount\" column=\"CREDIT_AMOUNT\"/>\n"
#~ " ...\n"
#~ " <subclass name=\"MasterCardPayment\" discriminator-value=\"MDC\"/"
#~ ">\n"
#~ " <subclass name=\"VisaPayment\" discriminator-value=\"VISA\"/>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"NonelectronicTransaction\" table=\"NONELECTRONIC_TXN"
#~ "\">\n"
#~ " <id name=\"id\" type=\"long\" column=\"TXN_ID\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " ...\n"
#~ " <joined-subclass name=\"CashPayment\" table=\"CASH_PAYMENT\">\n"
#~ " <key column=\"PAYMENT_ID\"/>\n"
#~ " <property name=\"amount\" column=\"CASH_AMOUNT\"/>\n"
#~ " ...\n"
#~ " </joined-subclass>\n"
#~ " <joined-subclass name=\"ChequePayment\" table=\"CHEQUE_PAYMENT"
#~ "\">\n"
#~ " <key column=\"PAYMENT_ID\"/>\n"
#~ " <property name=\"amount\" column=\"CHEQUE_AMOUNT\"/>\n"
#~ " ...\n"
#~ " </joined-subclass>\n"
#~ "</class>"
#, fuzzy
#~ msgid "<term>table per subclass"
#~ msgstr "<entry>æ¯ä¸ªåç±»ä¸€å¼ è¡¨"
#~ msgid "from Payment p"
#~ msgstr "from Payment p"
#~ msgid "supported"
#~ msgstr "支æŒ"
#~ msgid "<any>"
#~ msgstr "<any>"
#~ msgid "not supported"
#~ msgstr "ä¸æ”¯æŒ"
Other Hibernate examples (source code examples)
Here is a short list of links related to this Hibernate inheritance_mapping.po source code file:
|