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

📄 collection_mapping.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 5 页
字号:
#: index.docbook:530msgid """An instance of the contained entity class may not appear at more than one ""value of the collection index"msgstr """Una instancia de la clase entidad contenida no puede aparecer en m&#x00e1;s ""de un valor del &#x00ed;ndice de colecci&#x00f3;n."#: index.docbook:537msgid """An association from <literal>Product</literal> to <literal>Part</literal> ""requires existence of a foreign key column and possibly an index column to ""the <literal>Part</literal> table. A <literal>&lt;one-to-many&gt;</literal> ""tag indicates that this is a one to many association."msgstr """Una asociaci&#x00f3;n de <literal>Product</literal> a <literal>Part</""literal> requiere la existencia de una columna clave for&#x00e1;nea y ""posiblemente una columna &#x00ed;ndice a la tabla <literal>Part</literal>. ""Una etiqueta <literal>&lt;one-to-many&gt;</literal> indica que &#x00e9;sta ""es una asociaci&#x00f3;n uno a muchos."#: index.docbook:550msgid """<![CDATA[<one-to-many \n""        class=\"ClassName\"\n""        not-found=\"ignore|exception\"\n""        entity-name=\"EntityName\"\n""        node=\"element-name\"\n""        embed-xml=\"true|false\"\n""    />]]>"msgstr """<![CDATA[<one-to-many \n""        class=\"ClassName\"\n""        not-found=\"ignore|exception\"\n""        entity-name=\"EntityName\"\n""        node=\"element-name\"\n""        embed-xml=\"true|false\"\n""    />]]>"#: index.docbook:553msgid "<literal>class</literal> (required): The name of the associated class."msgstr "<literal>class</literal> (requerido): El nombre de la clase asociada."#: index.docbook:558msgid """<literal>not-found</literal> (optional - defaults to <literal>exception</""literal>): Specifies how cached identifiers that reference missing rows will ""be handled: <literal>ignore</literal> will treat a missing row as a null ""association."msgstr """<literal>not-found</literal> (opcional - por defecto a <literal>exception</""literal>): Especifica c&#x00f3;mo ser&#x00e1;n manejados los identificadores ""en cach&#x00e9; que referencien filas perdidas: <literal>ignore</literal> ""tratar&#x00e1; una fila perdida como una asociaci&#x00f3;n nula."#: index.docbook:565msgid """<literal>entity-name</literal> (optional): The entity name of the associated ""class, as an alternative to <literal>class</literal>."msgstr """<literal>entity-name</literal> (opcional): El nombre de entidad de la clase ""asociada, como una alternativa a <literal>class</literal>."#: index.docbook:573msgid """Notice that the <literal>&lt;one-to-many&gt;</literal> element does not need ""to declare any columns. Nor is it necessary to specify the <literal>table</""literal> name anywhere."msgstr """Observa que el elemento <literal>&lt;one-to-many&gt;</literal> no necesita ""declarar ninguna columna. Ni es necesario especificar el nombre de ""<literal>table</literal> en ning&#x00fa;n sitio."#: index.docbook:579msgid """<emphasis>Very important note:</emphasis> If the foreign key column of a ""<literal>&lt;one-to-many&gt;</literal> association is declared <literal>NOT ""NULL</literal>, you must declare the <literal>&lt;key&gt;</literal> mapping ""<literal>not-null=\"true\"</literal> or <emphasis>use a bidirectional ""association</emphasis> with the collection mapping marked <literal>inverse=""\"true\"</literal>. See the discussion of bidirectional associations later ""in this chapter."msgstr """<emphasis>Nota muy importante:</emphasis> Si la columna clave for&#x00e1;nea ""de una asociaci&#x00f3;n <literal>&lt;one-to-many&gt;</literal> es declarada ""<literal>NOT NULL</literal>, debes declarar el mapeo de <literal>&lt;key&gt;""</literal> <literal>not-null=\"true\"</literal> o <emphasis>usar una ""asociaci&#x00f3;n bidireccional</emphasis> con el mapeo de colecci&#x00f3;n ""marcado <literal>inverse=\"true\"</literal>. Ver la discusi&#x00f3;n sobre ""asociaciones bidireccionales m&#x00e1;s adelante en este cap&#x00ed;tulo."#: index.docbook:588msgid """This example shows a map of <literal>Part</literal> entities by name (where ""<literal>partName</literal> is a persistent property of <literal>Part</""literal>). Notice the use of a formula-based index."msgstr """Este ejemplo muestra un mapa de entidades <literal>Part</literal> por nombre ""(donde <literal>partName</literal> es una propiedad persistente de ""<literal>Part</literal>). Observa el uso de un &#x00ed;ndice basado en ""f&#x00f3;rmula."#: index.docbook:594msgid """<![CDATA[<map name=\"parts\"\n""        cascade=\"all\">\n""    <key column=\"productId\" not-null=\"true\"/>\n""    <map-key formula=\"partName\"/>\n""    <one-to-many class=\"Part\"/>\n""</map>]]>"msgstr """<![CDATA[<map name=\"parts\"\n""        cascade=\"all\">\n""    <key column=\"productId\" not-null=\"true\"/>\n""    <map-key formula=\"partName\"/>\n""    <one-to-many class=\"Part\"/>\n""</map>]]>"#: index.docbook:600msgid "Advanced collection mappings"msgstr "Mapeos de colecci&#x00f3;n avanzados"#: index.docbook:603msgid "Sorted collections"msgstr "Colecciones ordenadas"#: index.docbook:605msgid """Hibernate supports collections implementing <literal>java.util.SortedMap</""literal> and <literal>java.util.SortedSet</literal>. You must specify a ""comparator in the mapping file:"msgstr """Hibernate soporta colecciones implementando <literal>java.util.SortedMap</""literal> y <literal>java.util.SortedSet</literal>. Debes especificar un ""comparador en el fichero de mapeo:"#: index.docbook:610msgid """<![CDATA[<set name=\"aliases\" \n""            table=\"person_aliases\" \n""            sort=\"natural\">\n""    <key column=\"person\"/>\n""    <element column=\"name\" type=\"string\"/>\n""</set>\n""\n""<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n""    <key column=\"year_id\"/>\n""    <map-key column=\"hol_name\" type=\"string\"/>\n""    <element column=\"hol_date\" type=\"date\"/>\n""</map>]]>"msgstr """<![CDATA[<set name=\"aliases\" \n""            table=\"person_aliases\" \n""            sort=\"natural\">\n""    <key column=\"person\"/>\n""    <element column=\"name\" type=\"string\"/>\n""</set>\n""\n""<map name=\"holidays\" sort=\"my.custom.HolidayComparator\">\n""    <key column=\"year_id\"/>\n""    <map-key column=\"hol_name\" type=\"string\"/>\n""    <element column=\"hol_date\" type=\"date\"/>\n""</map>]]>"#: index.docbook:612msgid """Allowed values of the <literal>sort</literal> attribute are ""<literal>unsorted</literal>, <literal>natural</literal> and the name of a ""class implementing <literal>java.util.Comparator</literal>."msgstr """Los valores permitidos del atributo <literal>sort</literal> son ""<literal>unsorted</literal>, <literal>natural</literal> y el nombre de una ""clase que implemente <literal>java.util.Comparator</literal>."#: index.docbook:618msgid """Sorted collections actually behave like <literal>java.util.TreeSet</literal> ""or <literal>java.util.TreeMap</literal>."msgstr """Las colecciones ordenadas realmente se comportan como <literal>java.util.""TreeSet</literal> o <literal>java.util.TreeMap</literal>."#: index.docbook:623msgid """If you want the database itself to order the collection elements use the ""<literal>order-by</literal> attribute of <literal>set</literal>, ""<literal>bag</literal> or <literal>map</literal> mappings. This solution is ""only available under JDK 1.4 or higher (it is implemented using ""<literal>LinkedHashSet</literal> or <literal>LinkedHashMap</literal>). This ""performs the ordering in the SQL query, not in memory."msgstr """Si quieres que la misma base de datos ordene los elementos de colecci&#x00f3;""n usa el atributo <literal>order-by</literal> de los mapeos <literal>set</""literal>, <literal>bag</literal> o <literal>map</literal>. Esta ""soluci&#x00f3;n est&#x00e1; disponible s&#x00f3;lo bajo el JDK 1.4 o ""superior (est&#x00e1; implementado usando <literal>LinkedHashSet</literal> o ""<literal>LinkedHashMap</literal>). Esto realiza la ordenaci&#x00f3;n en la ""consulta SQL, no en memoria."#: index.docbook:632msgid """<![CDATA[<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower""(name) asc\">\n""    <key column=\"person\"/>\n""    <element column=\"name\" type=\"string\"/>\n""</set>\n""\n""<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n""    <key column=\"year_id\"/>\n""    <map-key column=\"hol_name\" type=\"string\"/>\n""    <element column=\"hol_date type=\"date\"/>\n""</map>]]>"msgstr """<![CDATA[<set name=\"aliases\" table=\"person_aliases\" order-by=\"lower""(name) asc\">\n""    <key column=\"person\"/>\n""    <element column=\"name\" type=\"string\"/>\n""</set>\n""\n""<map name=\"holidays\" order-by=\"hol_date, hol_name\">\n""    <key column=\"year_id\"/>\n""    <map-key column=\"hol_name\" type=\"string\"/>\n""    <element column=\"hol_date type=\"date\"/>\n""</map>]]>"#: index.docbook:634msgid """Note that the value of the <literal>order-by</literal> attribute is an SQL ""ordering, not a HQL ordering!"msgstr """Observa que el valor del atributo <literal>order-by</literal> es una ""ordenaci&#x00f3;n SQL, no una ordenaci&#x00f3;n HQL!"#: index.docbook:639msgid """Associations may even be sorted by some arbitrary criteria at runtime using ""a collection <literal>filter()</literal>."msgstr """Las asociaciones pueden incluso ser ordenadas por alg&#x00fa;n criterio ""arbitrario en tiempo de ejecuci&#x00f3;n usando un <literal>filter()</""literal> de colecci&#x00f3;n."#: index.docbook:644msgid """<![CDATA[sortedUsers = s.createFilter( group.getUsers(), \"order by this.name""\" ).list();]]>"msgstr """<![CDATA[sortedUsers = s.createFilter( group.getUsers(), \"order by this.name""\" ).list();]]>"#: index.docbook:649msgid "Bidirectional associations"msgstr "Asociaciones bidireccionales"#: index.docbook:651msgid """A <emphasis>bidirectional association</emphasis> allows navigation from both ""\"ends\" of the association. Two kinds of bidirectional association are ""supported:"msgstr """Una <emphasis>asociaci&#x00f3;n bidireccional</emphasis> permite la ""nevegaci&#x00f3;n desde ambos \"extremos\" de la asociaci&#x00f3;n. Son ""soportados dos tipos de asociaci&#x00f3;n bidireccional:"#: index.docbook:658msgid "one-to-many"msgstr "uno-a-muchos"#: index.docbook:660msgid "set or bag valued at one end, single-valued at the other"msgstr "set o bag valorados en un extremo, monovaluados al otro"#: index.docbook:666msgid "many-to-many"msgstr "muchos-a-muchos"#: index.docbook:668msgid "set or bag valued at both ends"msgstr "set o bag valorados a ambos extremos"#: index.docbook:677msgid """You may specify a bidirectional many-to-many association simply by mapping ""two many-to-many associations to the same database table and declaring one ""end as <emphasis>inverse</emphasis> (which one is your choice, but it can ""not be an indexed collection)."msgstr """Puedes especificar una asociaci&#x00f3;n bidireccional muchos-a-muchos ""simplemente mapeando dos asociaciones muchos-a-muchos a la misma tabla de ""base de datos y declarando un extremo como <emphasis>inverse</emphasis> ""(cu&#x00e1;l de ellos es tu elecci&#x00f3;n, pero no puede ser una ""colecci&#x00f3;n indexada)."#: index.docbook:684msgid """Here's an example of a bidirectional many-to-many association; each category ""can have many items and each item can be in many categories:"msgstr """He aqu&#x00ed; un ejemplo de una asociaci&#x00f3;n bidireccional muchos-a-""muchos; cada categor&#x00ed;a puede tener muchos &#x00ed;tems y cada &#x00ed;""tem puede estar en muchas categor&#x00ed;as:"#: index.docbook:689msgid """<![CDATA[<class name=\"Category\">\n""    <id name=\"id\" column=\"CATEGORY_ID\"/>\n"

⌨️ 快捷键说明

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