⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basic_mapping.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 5 页
字号:
#, fuzzymsgid ""msgstr """PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Content-Type: text/plain; charset=utf-8\n"#: index.docbook:5msgid "Basic O/R Mapping"msgstr "Mapeo O/R B&#x00e1;sico"#: index.docbook:8msgid "Mapping declaration"msgstr "Declaraci&#x00f3;n de mapeo"#: index.docbook:10msgid """Object/relational mappings are usually defined in an XML document. The ""mapping document is designed to be readable and hand-editable. The mapping ""language is Java-centric, meaning that mappings are constructed around ""persistent class declarations, not table declarations."msgstr """Los mapeos objeto/relacional se definen usualmente en un documento XML. El ""documento de mapeo est&#x00e1; dise&#x00f1;ado para ser le&#x00ed;ble y ""editable a mano. El lenguaje de mapeo es Java-c&#x00e9;ntrico, o sea que los ""mapeos se construyen alrededor de declaraciones de clases persistentes, no ""declaraciones de tablas."#: index.docbook:17msgid """Note that, even though many Hibernate users choose to write the XML by hand, ""a number of tools exist to generate the mapping document, including XDoclet, ""Middlegen and AndroMDA."msgstr """Observa que, incluso aunque muchos usuarios de Hibernate eligen escribir el ""XML a mano, existe una cantidad de herramientas para generar el documento de ""mapeo, incluyendo XDoclet, Middlegen y AndroMDA."#: index.docbook:23msgid "Lets kick off with an example mapping:"msgstr "Comencemos por un mapeo de ejemplo:"#: index.docbook:27msgid """<![CDATA[<?xml version=\"1.0\"?>\n""<!DOCTYPE hibernate-mapping PUBLIC\n""      \"-//Hibernate/Hibernate Mapping DTD 3.0//EN\"\n""          \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n""\n""<hibernate-mapping package=\"eg\">\n""\n""        <class name=\"Cat\"\n""            table=\"cats\"\n""            discriminator-value=\"C\">\n""\n""                <id name=\"id\">\n""                        <generator class=\"native\"/>\n""                </id>\n""\n""                <discriminator column=\"subclass\"\n""                     type=\"character\"/>\n""\n""                <property name=\"weight\"/>\n""\n""                <property name=\"birthdate\"\n""                    type=\"date\"\n""                    not-null=\"true\"\n""                    update=\"false\"/>\n""\n""                <property name=\"color\"\n""                    type=\"eg.types.ColorUserType\"\n""                    not-null=\"true\"\n""                    update=\"false\"/>\n""\n""                <property name=\"sex\"\n""                    not-null=\"true\"\n""                    update=\"false\"/>\n""\n""                <property name=\"litterId\"\n""                    column=\"litterId\"\n""                    update=\"false\"/>\n""\n""                <many-to-one name=\"mother\"\n""                    column=\"mother_id\"\n""                    update=\"false\"/>\n""\n""                <set name=\"kittens\"\n""                    inverse=\"true\"\n""                    order-by=\"litter_id\">\n""                        <key column=\"mother_id\"/>\n""                        <one-to-many class=\"Cat\"/>\n""                </set>\n""\n""                <subclass name=\"DomesticCat\"\n""                    discriminator-value=\"D\">\n""\n""                        <property name=\"name\"\n""                            type=\"string\"/>\n""\n""                </subclass>\n""\n""        </class>\n""\n""        <class name=\"Dog\">\n""                <!-- mapping for Dog could go here -->\n""        </class>\n""\n""</hibernate-mapping>]]>"msgstr """<![CDATA[<?xml version=\"1.0\"?>\n""<!DOCTYPE hibernate-mapping PUBLIC\n""      \"-//Hibernate/Hibernate Mapping DTD 3.0//EN\"\n""          \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n""\n""<hibernate-mapping package=\"eg\">\n""\n""        <class name=\"Cat\" \n""            table=\"cats\"\n""            discriminator-value=\"C\">\n""                \n""                <id name=\"id\">\n""                        <generator class=\"native\"/>\n""                </id>\n""\n""                <discriminator column=\"subclass\" \n""                     type=\"character\"/>\n""\n""                <property name=\"weight\"/>\n""\n""                <property name=\"birthdate\"\n""                    type=\"date\" \n""                    not-null=\"true\" \n""                    update=\"false\"/>\n""\n""                <property name=\"color\"\n""                    type=\"eg.types.ColorUserType\"\n""                    not-null=\"true\"\n""                    update=\"false\"/>\n""\n""                <property name=\"sex\"\n""                    not-null=\"true\" \n""                    update=\"false\"/>\n""\n""                <property name=\"litterId\"\n""                    column=\"litterId\"\n""                    update=\"false\"/>\n""\n""                <many-to-one name=\"mother\"\n""                    column=\"mother_id\"\n""                    update=\"false\"/>\n""\n""                <set name=\"kittens\"\n""                    inverse=\"true\"\n""                    order-by=\"litter_id\">\n""                        <key column=\"mother_id\"/>\n""                        <one-to-many class=\"Cat\"/>\n""                </set>\n""\n""                <subclass name=\"DomesticCat\"\n""                    discriminator-value=\"D\">\n""\n""                        <property name=\"name\" \n""                            type=\"string\"/>\n""\n""                </subclass>\n""\n""        </class>\n""\n""        <class name=\"Dog\">\n""                <!-- mapping for Dog could go here -->\n""        </class>\n""\n""</hibernate-mapping>]]>"#: index.docbook:29msgid """We will now discuss the content of the mapping document. We will only ""describe the document elements and attributes that are used by Hibernate at ""runtime. The mapping document also contains some extra optional attributes ""and elements that affect the database schemas exported by the schema export ""tool. (For example the <literal> not-null</literal> attribute.)"msgstr """Discutiremos ahora el contenido del documento de mapeo. Describiremos ""s&#x00f3;lo los elementos y atributos que son usados por Hibernate en tiempo ""de ejecuci&#x00f3;n. El documento de mapeo contiene adem&#x00e1;s algunos ""atributos y elementos extra opcionales que afectan los esquemas de base de ""datos exportados por la herramienta de exportaci&#x00f3;n de esquemas. (Por ""ejemplo, el atributo <literal>not-null</literal>.)"#: index.docbook:40msgid "Doctype"msgstr "Doctype"#: index.docbook:42msgid """All XML mappings should declare the doctype shown. The actual DTD may be ""found at the URL above, in the directory <literal>hibernate-x.x.x/src/org/""hibernate </literal> or in <literal>hibernate3.jar</literal>. Hibernate will ""always look for the DTD in its classpath first. If you experience lookups of ""the DTD using an Internet connection, check your DTD declaration against the ""contents of your claspath."msgstr """Todos los mapeos XML deben declarar el doctype mostrado. El DTD actual puede ""ser encontrado en el URL mencionado arriba, en el directorio ""<literal>hibernate-x.x.x/src/org/hibernate</literal>, o en ""<literal>hibernate3.jar</literal>. Hibernate siempre buscar&#x00e1; el DTD ""primero en el classpath. Si experimentas b&#x00fa;squedas del DTD usando una ""conexi&#x00f3;n de Internet, chequea tu declaraci&#x00f3;n de DTD contra la ""contenida en el classpath."#: index.docbook:52msgid "EntityResolver"msgstr "UNTRANSLATED! EntityResolver"#: index.docbook:53msgid """As mentioned previously, Hibernate will first attempt to resolve DTDs in its ""classpath. The manner in which it does this is by registering a custom ""<literal>org.xml.sax.EntityResolver</literal> implementation with the ""SAXReader it uses to read in the xml files. This custom ""<literal>EntityResolver</literal> recognizes two different systemId ""namespaces."msgstr """As mentioned previously, Hibernate will first attempt to resolve DTDs in its ""classpath. The manner in which it does this is by registering a custom ""<literal>org.xml.sax.EntityResolver</literal> implementation with the ""SAXReader it uses to read in the xml files. This custom ""<literal>EntityResolver</literal> recognizes two different systemId ""namespaces."#: index.docbook:61msgid """a <literal>hibernate namespace</literal> is recognized whenever the resolver ""encounteres a systemId starting with <literal>http://hibernate.sourceforge.""net/</literal>; the resolver attempts to resolve these entities via the ""classlaoder which loaded the Hibernate classes."msgstr """a <literal>hibernate namespace</literal> is recognized whenever the resolver ""encounteres a systemId starting with <literal>http://hibernate.sourceforge.""net/</literal>; the resolver attempts to resolve these entities via the ""classlaoder which loaded the Hibernate classes."#: index.docbook:70msgid """a <literal>user namespace</literal> is recognized whenever the resolver ""encounteres a systemId using a <literal>classpath://</literal> URL protocol; ""the resolver will attempt to resolve these entities via (1) the current ""thread context classloader and (2) the classloader which loaded the ""Hibernate classes."msgstr """a <literal>user namespace</literal> is recognized whenever the resolver ""encounteres a systemId using a <literal>classpath://</literal> URL protocol; ""the resolver will attempt to resolve these entities via (1) the current ""thread context classloader and (2) the classloader which loaded the ""Hibernate classes."#: index.docbook:79msgid "An example of utilizing user namespacing:"msgstr "An example of utilizing user namespacing:"#: index.docbook:82msgid """<![CDATA[<?xml version=\"1.0\"?>\n""<!DOCTYPE hibernate-mapping PUBLIC\n""        \"-//Hibernate/Hibernate Mapping DTD 3.0//EN\"\n""        \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\" [\n""    <!ENTITY types SYSTEM \"classpath://your/domain/types.xml\">\n""]>\n""\n""<hibernate-mapping package=\"your.domain\">\n""    <class name=\"MyEntity\">\n""        <id name=\"id\" type=\"my-custom-id-type\">\n""            ...\n""        </id>\n""    <class>\n""    &types;\n""</hibernate-mapping>]]>"msgstr """<![CDATA[<?xml version=\"1.0\"?>\n""                            <!DOCTYPE hibernate-mapping PUBLIC\n""                                      \"-//Hibernate/Hibernate Mapping DTD ""3.0//EN\"\n""                                      \"http://hibernate.sourceforge.net/""hibernate-mapping-3.0.dtd\" [\n""                                      <!ENTITY types SYSTEM \"classpath://""your/domain/types.xml\">\n""                                      ]>\n""                                      \n""                                      <hibernate-mapping package=\"your.""domain\">\n""                                              <class name=\"MyEntity\">\n""                                                      <id name=\"id\" type=""\"my-custom-id-type\">\n""                                                              ...\n""                                                      </id>\n""                                                      <class>\n""                                                              &types;\n""                                                      </hibernate-mapping>]]>"#: index.docbook:83msgid """Where <literal>types.xml</literal> is a resource in the <literal>your.""domain</literal> package and contains a custom <link linkend=\"mapping-types-""custom\">typedef</link>."msgstr """Where <literal>types.xml</literal> is a resource in the <literal>your.""domain</literal> package and contains a custom <link linkend=\"mapping-types-""custom\">typedef</link>."

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -