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

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.

Java - Hibernate tags/keywords

amount, cashpayment, chequepayment, credit_payment, creditcardpayment, hibernate, hibernate, payment, payment, payment_id, payment_id, tag, tag, the

The Hibernate inheritance_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:59+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 "継承マッピング"

#. Tag: title
#, no-c-format
msgid "The three strategies"
msgstr "3つの戦略"

#. Tag: para
#, no-c-format
msgid "Hibernate supports the three basic inheritance mapping strategies:"
msgstr "Hibernate は3つの基本的な継承のマッピング戦略をサポートします。"

#. 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 ""
"加えて4つ目に、 Hibernate はわずかに異なる性質を持ったポリモーフィズムをサ"
"ポートします。"

#. Tag: para
#, no-c-format
msgid "implicit polymorphism"
msgstr "暗黙的ポリモーフィズム"

#. 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>, "
"<literal><joined-subclass> and <union-"
"subclass></literal> mappings under the same root <class><subclass> and "
"<literal><join> elements (see below for an example)."
msgstr ""
"同一の継承階層の異なるブランチに対して異なるマッピング戦略を使うことができま"
"す。その場合には全体の階層に渡るポリモーフィズムを実現するために暗黙的ポリ"
"モーフィズムを使用します。しかし、 Hibernate は同じルート <literal><"
"class></literal> 要素内で <subclass> マッピン"
"グ、 <literal><joined-subclass> マッピング、 <"
"union-subclass></literal> マッピングの同時使用をサポートしていません。 "
"<literal><subclass> 要素と <join> 要"
"素を組み合わせることで、同一 <literal><class> 要素内での "
"table-per-hierarchy 戦略と table-per-subclass 戦略の同時使用は可能です。次の"
"例を見てください。"

#. Tag: para
#, no-c-format
msgid ""
"It is possible to define <literal>subclass, union-"
"subclass</literal>, and joined-subclass mappings in "
"separate mapping documents directly beneath <literal>hibernate-mapping 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>subclassunion-subclass と "
"<literal>joined-subclass マッピングを複数のマッピングドキュメントに"
"定義することが出来、 <literal>hibernate-mapping の直下に配置しま"
"す。これは新しいマッピングファイルを追加するだけで、クラス階層を拡張できると"
"いうことです。あらかじめマップしたスーパークラスを指定して、サブクラスマッピ"
"ングに <literal>extends 属性を記述しなければなりません。注記:この"
"特徴により、以前はマッピングドキュメントの順番が重要でした。 Hibernate3 から"
"は、 extends キーワードを使う場合、マッピングドキュメントの順番は問題になりま"
"せん。1つのマッピングファイル内で順番付けを行うときは、依然として、サブクラ"
"スを定義する前にスーパークラスを定義する必要があります。)"

#. 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 <literal>CreditCardPayment, CashPaymentChequePayment. The table per hierarchy "
"mapping would display in the following way:"
msgstr ""
"例えば、インターフェース <literal>Payment と、それを実装した "
"<literal>CreditCardPayment、 CashPayment、 "
"<literal>ChequePayment があるとします。階層ごとのテーブルマッピング"
"は以下のようになります:"

#. 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>CCTYPENOT NULL constraints."
msgstr ""
"ちょうど一つのテーブルが必要です。このマッピング戦略には一つ大きな制限があり"
"ます。 <literal>CCTYPE のような、サブクラスで宣言されたカラムは "
"<literal>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 "table-per-subclass マッピングは以下のようになります:"

#. 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 ""
"このマッピングには4つのテーブルが必要です。3つのサブクラステーブルはスーパー"
"クラステーブルとの関連を示す主キーを持っています (実際、関係モデル上は一対一"
"関連です)。"

#. Tag: title
#, no-c-format
msgid "Table per subclass: using a discriminator"
msgstr "discriminator を用いた table-per-subclass"

#. 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 "
"<literal><join>, as follows:"
msgstr ""
"Hibernate の table-per-subclass 実装は、 discriminator カラムを必要としないこ"
"とを覚えておいてください。 Hibernate 以外の O/R マッパーは、 table-per-"
"subclass に異なる実装を用います。それは、スーパークラスのテーブルにタイプ "
"discriminator カラムを必要とします。このアプローチは実装が困難になりますが、"
"関係の視点から見ると、より正確なものです。 table-per-subclass 戦略で "
"discriminator カラムを使いたければ、 <literal><subclass> と "
"<literal><join> を以下のように組み合わせて使ってください。"

#. Tag: para
#, no-c-format
msgid ""
"The optional <literal>fetch=\"select\" declaration tells Hibernate "
"not to fetch the <literal>ChequePayment subclass data using an "
"outer join when querying the superclass."
msgstr ""
"オプションの <literal>fetch=\"select\" 宣言は、スーパークラスのクエ"
"リ実行時に外部結合を使って、サブクラスの <literal>ChequePayment "
"データを取得しないように指定するためのものです。"

#. Tag: title
#, no-c-format
msgid "Mixing table per class hierarchy with table per subclass"
msgstr "table-per-subclass と table-per-class-hierarchy の混合"

#. Tag: para
#, no-c-format
msgid ""
"You can even mix the table per hierarchy and table per subclass strategies "
"using the following approach:"
msgstr ""
"このアプローチを使用すると、 table-per-hierarchy と table-per-subclass 戦略を"
"組み合わせる事も可能です。"

#. 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>"
"</literal>."
msgstr ""
"いずれのマッピング戦略であっても、ルートである <literal>Payment ク"
"ラスへのポリモーフィックな関連は <literal><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 ""
"table-per-concrete-class 戦略のマッピングに対するアプローチは、2つあります。1"
"つ目は <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 ""
"サブクラスごとに3つのテーブルが必要です。それぞれのテーブルは、継承プロパティ"
"を含んだ、クラスの全てのプロパティに対するカラムを定義します。"

#. Tag: para
#, fuzzy, 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 継承では識別子生成戦略を使用できません。主キーを生成するための"
"シードは、全ての union subclass の階層内で共有する必要があるからです。"

#. Tag: para
#, no-c-format
msgid ""
"If your superclass is abstract, map it with <literal>abstract=\"true\" in the example above), is needed to hold "
"instances of the superclass."
msgstr ""
"もしスーパークラスが抽象クラスなら、 <literal>abstract=\"true\" と"
"マッピングします。もちろん、スーパークラスが抽象クラスでないなら、スーパーク"
"ラスのインスタンスを保持するためのテーブルの追加が必要となります (上の例での"
"デフォルトは <literal>PAYMENT )。"

#. Tag: title
#, no-c-format
msgid "Table per concrete class using implicit polymorphism"
msgstr "暗黙的ポリモーフィズムを用いた table-per-concrete-class"

#. 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 <literal>Payment are "
"mapped in each of the subclasses. If you want to avoid duplication, consider "
"using XML entities (for example, <literal>[ <!ENTITY allproperties SYSTEM "
"\"allproperties.xml\"> ]</literal> in the DOCTYPE "
"declaration and <literal>&allproperties; in the mapping)."
msgstr ""
"<literal>Payment インターフェースがどこにも明示的に示されていないこ"
"とに注意してください。そして、 <literal>Payment プロパティがそれぞ"
"れのサブクラスにマッピングされていることにも注意してください。もし重複を避け"
"たいのであれば、 XML エンティティの利用を考えてください。 (例: "
"<literal>DOCTYPE 宣言における [ <!ENTITY allproperties "
"SYSTEM \"allproperties.xml\"> ]</literal> と、マッピングにおける "
"<literal>&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 がポリモーフィックなクエリの実行時に SQL "
"<literal>UNION を生成しない点です。"

#. Tag: para
#, no-c-format
msgid ""
"For this mapping strategy, a polymorphic association to <literal>Payment<any>."
msgstr ""
"このマッピング戦略に対しては、 <literal>Payment へのポリモーフィッ"
"クな関連は常に、 <literal><any> を使ってマッピングされます。"

#. 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>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 "
"<literal>Payment interface."
msgstr ""
"このマッピングについての更なる注意点があります。サブクラスが自身を "
"<literal><class> 要素としてマッピングしているので、(かつ "
"<literal>Payment は単なるインターフェースなので)、それぞれのサブク"
"ラスは簡単にその他の継承階層の一部となります。(しかも、今までどおり "
"<literal>Payment インターフェースに対するポリモーフィックなクエリを"
"使用することができます)"

#. Tag: para
#, no-c-format
msgid ""
"Once again, <literal>Payment is not mentioned explicitly. If we "
"execute a query against the <literal>Payment interface, for "
"example <literal>from Payment, Hibernate automatically returns "
"instances of <literal>CreditCardPayment (and its subclasses, since "
"they also implement <literal>Payment), CashPaymentChequePayment, but not instances of "
"<literal>NonelectronicTransaction."
msgstr ""
"もう一度述べますが、 <literal>Payment は明示的に定義されません。も"
"し、 <literal>Payment インターフェースに対してクエリを実行するなら "
"(例えば <literal>from Payment 節を使って)、 Hibernate は自動的に "
"<literal>CreditCardPayment (と CreditCardPayment のサブクラス、 "
"<literal>Payment の実装であるため)、および、 "
"<literal>CashPayment 、 ChequePayment のインスタ"
"ンスを返します。 <literal>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
#, fuzzy, no-c-format
msgid ""
"The following table shows the limitations of table per concrete-class "
"mappings, and of implicit polymorphism, in Hibernate."
msgstr ""
"次のテーブルに、 Hibernate における table-per-concrete-class マッピングの制限"
"や暗黙的ポリモーフィズムの制限を示します。"

#. Tag: title
#, no-c-format
msgid "Features of inheritance mappings"
msgstr "継承マッピングの機能"

#. Tag: entry
#, no-c-format
msgid "Inheritance strategy"
msgstr "継承戦略"

#. Tag: entry
#, fuzzy, 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 "ポリモーフィックな <literal>load()/get()"

#. Tag: entry
#, no-c-format
msgid "Polymorphic queries"
msgstr "ポリモーフィズムを使ったクエリ"

#. Tag: entry
#, no-c-format
msgid "Polymorphic joins"
msgstr "ポリモーフィズムを使った結合"

#. Tag: entry
#, fuzzy, no-c-format
msgid "Outer join fetching"
msgstr "外部結合によるフェッチ"

#. Tag: entry
#, fuzzy, no-c-format
msgid "table per class-hierarchy"
msgstr "クラス階層ごとのテーブル (table-per-class-hierarchy)"

#. Tag: entry
#, fuzzy, no-c-format
msgid "<literal><many-to-one>"
msgstr "<many-to-one>"

#. Tag: entry
#, fuzzy, no-c-format
msgid "<literal><one-to-one>"
msgstr "<one-to-one>"

#. Tag: entry
#, fuzzy, no-c-format
msgid "<literal><one-to-many>"
msgstr "<one-to-many>"

#. Tag: entry
#, fuzzy, no-c-format
msgid "<literal><many-to-many>"
msgstr "<many-to-many>"

#. Tag: entry
#, fuzzy, no-c-format
msgid "<literal>s.get(Payment.class, id)"
msgstr "s.get(Payment.class, id)"

#. Tag: entry
#, fuzzy, no-c-format
msgid "<literal>from Payment p"
msgstr "ポリモーフィックな <literal>load()/get()"

#. Tag: entry
#, no-c-format
msgid "<literal>from Order o join o.payment p"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<emphasis>supported"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "table per concrete-class (union-subclass)"
msgstr "table per concrete-class (union-subclass)"

#. Tag: entry
#, fuzzy, no-c-format
msgid ""
"<literal><one-to-many> (for inverse=\"true\" ( inverse=\"true\" "
"のために限られる)"

#. Tag: entry
#, fuzzy, no-c-format
msgid "table per concrete class (implicit polymorphism)"
msgstr "table per concrete class (implicit polymorphism)"

#. Tag: entry
#, fuzzy, no-c-format
msgid "<literal><any>"
msgstr "ポリモーフィックな <literal>load()/get()"

#. Tag: entry
#, no-c-format
msgid "<emphasis>not supported"
msgstr ""

#. Tag: entry
#, fuzzy, no-c-format
msgid "<literal><many-to-any>"
msgstr "<many-to-any>"

#. Tag: entry
#, fuzzy, no-c-format
msgid ""
"<literal>s.createCriteria(Payment.class).add( Restrictions.idEq(id) )."
"uniqueResult()</literal>"
msgstr ""
"s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()"

#, fuzzy
#~ msgid "table per class-heirarchy"
#~ msgstr "table per class-hierarchy"

#, fuzzy
#~ msgid "Polymorphic many-to-one: <code><any>"
#~ msgstr "多対一のポリモーフィズム"

#~ msgid "<para>table per subclass"
#~ msgstr "<para>サブクラスごとのテーブル (table-per-subclass) "

#, 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>table per subclass"

#~ 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:

... 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.