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

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.

Java - Hibernate tags/keywords

cdata, hibernate, hibernate, komponente, komponenten, komponenten, name, orderline, sie, sie, string, tag, tag, the

The Hibernate component_mapping.po source code

# translation of Collection_Mapping.po to 
# translation of Collection_Mapping.po to
# translation of Collection_Mapping.po to
# translation of Collection_Mapping.po to
# translation of Collection_Mapping.po to
# translation of Collection_Mapping.po to
# Language /mnt/hgfs/base/Hibernate/Reference translations for PACKAGE package.
# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
# Automatically generated, 2006.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 2007.
# , 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: 2007-02-26 10:27+1000\n"
"Last-Translator: \n"
"Language-Team:  <de@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.9.1\n"

#. Tag: title
#, no-c-format
msgid "Component Mapping"
msgstr "Komponenten-Mapping"

#. 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 ""
"Der Begriff der <emphasis>Komponente wird in Hibernate in "
"verschiedenen Kontexten und zu unterschiedlichen Zwecken aufgegriffen."

#. Tag: title
#, no-c-format
msgid "Dependent objects"
msgstr "Abhängige Objekte"

#. 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 ""
"Bei einer Komponente handelt es sich um ein enthaltenes Objekt, das als "
"Wertetyp, nicht als Entity-Referenz persistiert ist. Der Begriff \"Komponente"
"\" verweist auf den objektorientierten Aspekt der Zusammensetzung (nicht auf "
"Komponenten der Architektur-Ebene). Sie könnten zum Beispiel folgendes "
"Modell für eine Person erstellen:"

#. 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 ""
"Jetzt kann <literal>Name als Komponente von PersonName \"Get"
"\"- und \"Set\"-Methoden für persistente Properties definiert, aber keine "
"Interfaces oder Bezeichner-Properties deklarieren muss."

#. Tag: para
#, fuzzy, no-c-format
msgid "Our Hibernate mapping would look like this:"
msgstr "Unser Hibernate Mapping würde wie folgt aussehen:"

#. Tag: para
#, no-c-format
msgid ""
"The person table would have the columns <literal>pid, "
"<literal>birthday, initial, firstlast."
msgstr ""
"Die Personentabelle würde die Spalten <literal>pid, "
"<literal>birthday, initial, firstlast besitzen."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Like value types, components do not support shared references. In other "
"words, two persons could have the same name, but the two person objects "
"would contain two independent name objects that were only \"the same\" by "
"value. The null value semantics of a component are <emphasis>ad hoc. Wenn das "
"enthaltene Objekt erneut geladen wird, geht Hibernate davon aus, dass die "
"gesamte Komponente Null ist, wenn alle Spalten Null sind . Für die meisten "
"Zwecke ist das in Ordnung."

#. 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 ""
"Die Properties einer Komponente können jeden Hibernate-Typ besitzen "
"(Collections, \"Many-to-One\"-Assoziationen, andere Komponenten, usw). "
"Verschachtelte Komponenten sollten <emphasis>nicht als exotisch "
"angesehen werden - Hibernate ist dafür vorgesehen, ein sehr feinstufiges "
"Objektmodell zu unterstützen."

#. 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 ""
"Das <literal><component>-Element ermöglicht ein <"
"parent></literal>-Subelement, das eine Property der Komponentenklasse als "
"Rückreferenz zur enthaltenden Entity mappt."

#. Tag: title
#, no-c-format
msgid "Collections of dependent objects"
msgstr "Collections abhängiger Objekte"

#. 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 ""
"Collections von Komponenten werden unterstützt (z.B. ein Datenelement vom "
"Typ <literal>Name). Deklarieren Sie Ihre Collection von "
"Komponenten, indem Sie das <literal><element>-Tag durch ein "
"<literal><composite-element>-Tag ersetzen."

#. 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() zusammengesetzter Elemente "
"deklarieren, ist es sehr wichtig, dass Sie <literal>equals() und "
"<literal>hashCode() korrekt implementieren."

#. 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 ""
"Zusammengesetzte Elemente können Komponenten, nicht jedoch Collections "
"enthalten. Falls Ihr zusammengesetztes Element selbst Komponenten enthält, "
"verwenden Sie das <literal><nested-composite-element>-Tag. "
"Es handelt sich dabei aber um einen recht exotischen Fall - eine Collection "
"von Komponenten, die wiederum selbst über Komponenten verfügen. An dieser "
"Stelle sollten Sie sich fragen, ob eine \"One-to-Many\"-Assoziation nicht "
"sinnvoller ist. Versuchen Sie, das zusammengesetzte Element zu einer Entity "
"zu machen - aber beachten Sie: Obwohl das Java-Modell dasselbe ist, gibt es "
"doch gewisse Unterschiede hinsichtlich des relationalen Modells und der "
"Persistenz-Semantik."

#. 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 ""
"Bitte beachten Sie, dass zusammengesetztes Element-Mapping keine nullbaren "
"Properties unterstützt, wenn Sie ein <literal><set> "
"verwenden. Hibernate muss den Wert jeder Spalte verwenden, um einen "
"Datensatz bei der Löschung von Objekten zu identifizieren (es existiert "
"keine separate Primärschlüsselspalte in der Tabelle mit zusammengesetzten "
"Elementen), was mit Nullwerten nicht möglich ist. Sie müssen entweder "
"ausschließlich Properties, die nicht Null sind, in einem zusammengesetzten "
"Element verwenden oder <literal><list>, <map>"
"</literal>, <bag> oder <idbag> 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 ""
"Um einen besonderen Fall von zusammengesetztem Element handelt es sich bei "
"einem zusammengesetzten Element mit verschachteltem <literal><many-to-"
"one></literal>-Element. Ein solches Mapping erlaubt es Ihnen, Extra-"
"Spalten einer \"Many-to-Many\"-Assoziationstabelle zu einer "
"zusammengesetzten Elementklasse zu mappen. Nachfolgend sehen Sie eine \"Many-"
"to-Many\"-Assoziation von <literal>Order zu ItempurchaseDate, price und "
"<literal>quantity Properties der Assoziation sind:"

#. 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 ""
"Natürlich kann kein Verweis zum Kauf (\"Purchase\") auf der anderen Seite "
"für eine bidirektionale Assoziationsnavigation existieren. Vergessen Sie "
"nicht, dass es sich bei Komponenten um Wertetypen handelt und diese keine "
"geteilten Verweise erlauben. Ein einzelner <literal>Purchase kann "
"sich im Satz einer <literal>Order befinden, aber kann nicht zur "
"gleichen Zeit durch den <literal>Item referenziert werden."

#. Tag: para
#, no-c-format
msgid "Even ternary (or quaternary, etc) associations are possible:"
msgstr "Sogar dreifache (oder vierfache, usw.) Assoziationen sind möglich:"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"Composite elements can appear in queries using the same syntax as "
"associations to other entities."
msgstr ""
"Zusammengesetzte Elemente können in Anfragen vorkommen und verwenden "
"dieselbe Syntax wie Assoziationen zu anderen Entities."

#. Tag: title
#, no-c-format
msgid "Components as Map indices"
msgstr "Komponenten als Map-Indizes"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The <literal><composite-map-key> 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 ""
"Das <literal><composite-map-key>-Element lässt Sie eine "
"Komponentenklasse als Schlüssel einer <literal>Map mappen. "
"Vergewissern Sie sich, dass Sie <literal>hashCode() und "
"<literal>equals() in der Komponentenklasse ordnungsgemäß außer "
"Kraft setzen."

#. Tag: title
#, no-c-format
msgid "Components as composite identifiers"
msgstr "Komponenten als zusammengesetzte Bezeichner"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"You can use a component as an identifier of an entity class. Your component "
"class must satisfy certain requirements:"
msgstr ""
"Sie können eine Komponente als Bezeichner einer Entity-Klasse verwenden. "
"Ihre Komponentenklasse muss folgende Anforderungen erfüllen:"

#. Tag: para
#, no-c-format
msgid "It must implement <literal>java.io.Serializable."
msgstr "Es muss <literal>java.io.Serializable implementieren."

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"It must re-implement <literal>equals() and hashCode() und hashCode() re-"
"implementieren, konsistent mit dem Datenbankbegriff der Gleichheit der "
"zusammengesetzten Schlüssel (sog. \"composite key equality\")."

#. 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 ""
"Hinweis: In Hibernate3 ist die zweite Anforderung nicht absolut zwingend. "
"Dennoch sollten Sie sich daran halten."

#. 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 ""
"Sie können keinen <literal>IdentifierGenerator verwenden, um "
"zusammengesetzte Schlüssel zu generieren. Statt dessen muss die Anwendung "
"Ihre eigenen Bezeichner zuordnen."

#. 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 ""
"Verwenden Sie das <literal><composite-id>-Tag (mit "
"verschachtelten <literal><key-property>-Elementen) anstelle "
"der üblichen <literal><id>-Deklaration. Zum Beispiel besitzt "
"die <literal>OrderLine-Klasse einen Primärschlüssel, der vom "
"(zusammengesetzten) Primärschlüssel von <literal>Order abhängt."

#. 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 ""
"Nun sind alle Fremdschlüssel, die auf die <literal>OrderLine-"
"Tabelle verweisen, ebenfalls zusammengesetzt. Sie müssen dies in Ihren "
"Mappings für andere Klassen deklarieren. Eine Assoziation zu "
"<literal>OrderLine würde wie folgt gemappt:"

#. Tag: para
#, fuzzy, no-c-format
msgid ""
"The <literal>column element is an alternative to the "
"<literal>column attribute everywhere. Using the column"
msgstr ""
"(Beachten Sie, dass das <literal><column>-Tag überall eine "
"Alternative zum  <literal>column-Attribut darstellt)."

#. Tag: para
#, no-c-format
msgid ""
"A <literal>many-to-many association to OrderLine-Assoziation zu OrderLines in Order "
"would use:"
msgstr ""
"Die Collection von <literal>OrderLines in Order "
"würde Folgendes verwenden:"

#. Tag: para
#, fuzzy, no-c-format
msgid "The <literal><one-to-many> element declares no columns."
msgstr ""
"(Das <literal><one-to-many>-Element deklariert wie üblich "
"keine Spalten)."

#. Tag: para
#, no-c-format
msgid ""
"If <literal>OrderLine itself owns a collection, it also has a "
"composite foreign key."
msgstr ""
"Falls <literal>OrderLine selbst eine Collection besitzt, so "
"besitzt es auch einen zusammengesetzten Fremdschlüssel."

#. Tag: title
#, no-c-format
msgid "Dynamic components"
msgstr "Dynamische Komponenten"

#. Tag: para
#, fuzzy, no-c-format
msgid "You can also map a property of type <literal>Map:"
msgstr "Sie können sogar eine Property vom Typ <literal>Map mappen:"

#. 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 ""
"Die Semantik eines <literal><dynamic-component>-Mappings ist "
"identisch mit <literal><component>. Der Vorteil dieser Art "
"des Mappings besteht in der Möglichkeit, die tatsächlichen Properties des "
"Beans zum Zeitpunkt des Deployments zu bestimmen, indem das Mapping-Dokument "
"editiert wird. Eine Runtime-Manipulation des Mapping-Dokuments ist mit einem "
"DOM-Parser ebenfalls möglich. Besser noch: Sie können mittels "
"<literal>Configuration-Objekt auf das Konfigurationszeit-"
"Metamodell von Hibernate zugreifen (und es verändern)."

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

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 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.