📄 collection_mapping.po
字号:
"literal> or <literal>desc</literal>"msgstr """<literal>order-by</literal> (opcional, sólo JDK1.4) especifica una ""columna de tabla (o columnas) que definen el orden de iteración del ""<literal>Map</literal>, <literal>Set</literal> o bag, junto a un ""<literal>asc</literal> o <literal>desc</literal> opcional."#: index.docbook:154msgid """<literal>where</literal> (optional) specify an arbitrary SQL <literal>WHERE</""literal> condition to be used when retrieving or removing the collection ""(useful if the collection should contain only a subset of the available data)"msgstr """<literal>where</literal> (opcional) especifica una condición ""<literal>WHERE</literal> de SQL arbitrario para ser usada al recuperar o ""quitar la colección (útil si la colección debe contener ""sólo un subconjunto de los datos disponibles)"#: index.docbook:161msgid """<literal>fetch</literal> (optional, defaults to <literal>select</literal>) ""Choose between outer-join fetching, fetching by sequential select, and ""fetching by sequential subselect."msgstr """<literal>fetch</literal> (opcional, por defecto a <literal>select</literal>) ""Elige entre recuperación por unión externa (outer-join), ""recuperar por selección secuencial, y recuperación por ""subselección secuencial."#: index.docbook:168msgid """<literal>batch-size</literal> (optional, defaults to <literal>1</literal>) ""specify a \"batch size\" for lazily fetching instances of this collection."msgstr """<literal>batch-size</literal> (opcional, por defecto a <literal>1</literal>) ""especifica un \"tamaño de lote\" para la recuperar perezosamente ""instancias de esta colección."#: index.docbook:174msgid """<literal>access</literal> (optional - defaults to <literal>property</""literal>): The strategy Hibernate should use for accessing the collection ""property value."msgstr """<literal>access</literal> (opcional - por defecto a <literal>property</""literal>): La estrategia que debe usar Hibernate para acceder al valor de la ""propiedad."#: index.docbook:180msgid """<literal>optimistic-lock</literal> (optional - defaults to <literal>true</""literal>): Species that changes to the state of the collection results in ""increment of the owning entity's version. (For one to many associations, it ""is often reasonable to disable this setting.)"msgstr """<literal>optimistic-lock</literal> (opcional - por defecto a <literal>true</""literal>): Especifica que los cambios de estado de la colección ""resultan en incrementos de versión de la entidad dueña. (Para ""asociaciones uno a muchos, frecuentemente es razonable deshabilitar esta ""opción.)"#: index.docbook:188msgid """<literal>mutable</literal> (optional - defaults to <literal>true</literal>): ""A value of <literal>false</literal> specifies that the elements of the ""collection never change (a minor performance optimization in some cases)."msgstr """<literal>mutable</literal> (optional - defaults to <literal>true</literal>): ""A value of <literal>false</literal> specifies that the elements of the ""collection never change (a minor performance optimization in some cases)."#: index.docbook:198msgid "Collection foreign keys"msgstr "Claves foráneas de collección"#: index.docbook:200msgid """Collection instances are distinguished in the database by the foreign key of ""the entity that owns the collection. This foreign key is referred to as the ""<emphasis>collection key column</emphasis> (or columns) of the collection ""table. The collection key column is mapped by the <literal><key></""literal> element."msgstr """Las instancias de colección se distinguen en la base de datos por la ""clave foránea de la entidad que posee la colección. Se hace ""referencia a esta clave foránea como la <emphasis>columna clave de ""colección</emphasis> (o columnas) de la tabla de colección. La ""columna clave de la colección es mapeada por el elemento <literal><""key></literal>."#: index.docbook:208msgid """There may be a nullability constraint on the foreign key column. For most ""collections, this is implied. For unidirectional one to many associations, ""the foreign key column is nullable by default, so you might need to specify ""<literal>not-null=\"true\"</literal>."msgstr """Puede haber una restricción de nulabilidad sobre la columna de clave ""foránea. Para la mayoría de colecciones, esto está ""implicado. Para asociaciones unidireccionales uno a muchos, la columna de ""clave foránea es nulable por defecto, de modo que podrías ""necesitar especificar <literal>not-null=\"true\"</literal>."#: index.docbook:215msgid "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"msgstr "<![CDATA[<key column=\"productSerialNumber\" not-null=\"true\"/>]]>"#: index.docbook:217msgid """The foreign key constraint may use <literal>ON DELETE CASCADE</literal>."msgstr """La restricción de clave foránea puede usar <literal>ON DELETE ""CASCADE</literal>."#: index.docbook:221msgid "<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"msgstr """<![CDATA[<key column=\"productSerialNumber\" on-delete=\"cascade\"/>]]>"#: index.docbook:223msgid """See the previous chapter for a full definition of the <literal><key></""literal> element."msgstr """Mira el capítulo anterior por una definición completa del ""elemento <literal><key></literal>."#: index.docbook:231msgid "Collection elements"msgstr "Elementos de collección"#: index.docbook:233msgid """Collections may contain almost any other Hibernate type, including all basic ""types, custom types, components, and of course, references to other ""entities. This is an important distinction: an object in a collection might ""be handled with \"value\" semantics (its life cycle fully depends on the ""collection owner) or it might be a reference to another entity, with its own ""life cycle. In the latter case, only the \"link\" between the two objects is ""considered to be state held by the collection."msgstr """Las colecciones pueden contener casi cualquier tipo de Hibernate, incluyendo ""todos los tipos básicos, componentes, y por supuesto, referencias a ""otras entidades. Esta es una distinción importante: un objeto en una ""colección puede ser manejado con una semántica de \"valor""\" (su ciclo de vida depende completamente del propietario de la ""colección) o podría ser una referencia a otra entidad, con su ""propio ciclo de vida. En el último caso, sólo el estado del ""\"enlace\" entre los dos objetos se considera mantenido por la ""colección."#: index.docbook:242msgid """The contained type is referred to as the <emphasis>collection element type</""emphasis>. Collection elements are mapped by <literal><element></""literal> or <literal><composite-element></literal>, or in the case of ""entity references, with <literal><one-to-many></literal> or ""<literal><many-to-many></literal>. The first two map elements with ""value semantics, the next two are used to map entity associations."msgstr """Se hace referencia al tipo contenido como el <emphasis>tipo de elemento de ""la colección</emphasis>. Los elementos de colección son ""mapeados por <literal><element></literal> o <literal><composite-""element></literal>, o en el caso de referencias de entidades, con ""<literal><one-to-many></literal> o <literal><many-to-many></""literal>. Las dos primeras mapean elementos con semántica de valor, ""los dos siguientes son usados para mapear asociaciones de entidades."#: index.docbook:254msgid "Indexed collections"msgstr "Colecciones indexadas"#: index.docbook:256msgid """All collection mappings, except those with set and bag semantics, need an ""<emphasis>index column</emphasis> in the collection table - a column that ""maps to an array index, or <literal>List</literal> index, or <literal>Map</""literal> key. The index of a <literal>Map</literal> may be of any basic ""type, mapped with <literal><map-key></literal>, it may be an entity ""reference mapped with <literal><map-key-many-to-many></literal>, or it ""may be a composite type, mapped with <literal><composite-map-key></""literal>. The index of an array or list is always of type <literal>integer</""literal> and is mapped using the <literal><list-index></literal> ""element. The mapped column contains sequential integers (numbered from zero, ""by default)."msgstr """Todos los mapeos de colección, excepto aquellos con semántica ""de set o bag, necesitan una <emphasis>columna índice</emphasis> en la ""tabla de colección, una columna que mapea a un índice de ""array, o índice de <literal>List</literal>, o clave de <literal>Map</""literal>. El índice de un <literal>Map</literal> puede ser de ""cualquier tipo básico, mapeado con <literal><map-key></""literal>, o puede ser una referencia de entidad, mapeada con <literal><""map-key-many-to-many></literal>, o puede ser un tipo compuesto, mapeado ""con <literal><composite-map-key></literal>. El índice de un ""array o lista es siempre de tipo <literal>integer</literal> y se mapea ""usando el elemento <literal><list-index></literal>. La columna mapeada ""contiene enteros secuenciales (numerados desde cero, por defecto)."#: index.docbook:267msgid """<programlistingco> <areaspec> <area id=\"index1\" coords=\"2 45\"/> <area id=""\"index2\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<list-""index \n"" column=\"column_name\"\n"" base=\"0|1|...\"/>]]></programlisting> <calloutlist> <callout ""arearefs=\"index1\"> <para> <literal>column_name</literal> (required): The ""name of the column holding the collection index values. </para> </callout> ""<callout arearefs=\"index1\"> <para> <literal>base</literal> (optional, ""defaults to <literal>0</literal>): The value of the index column that ""corresponds to the first element of the list or array. </para> </callout> </""calloutlist> </programlistingco> <programlistingco> <areaspec> <area id=""\"mapkey1\" coords=\"2 45\"/> <area id=\"mapkey2\" coords=\"3 45\"/> <area ""id=\"mapkey3\" coords=\"4 45\"/> </areaspec> <programlisting><![CDATA[<map-""key \n"" column=\"column_name\"\n"" formula=\"any SQL expression\"\n"" type=\"type_name\"\n"" node=\"@attribute-name\"\n"" length=\"N\"/>]]></programlisting> <calloutlist> <callout arearefs=""\"mapkey1\"> <para> <literal>column</literal> (optional): The name of the ""column holding the collection index values. </para> </callout> <callout ""arearefs=\"mapkey2\"> <para> <literal>formula</literal> (optional): A SQL ""formula used to evaluate the key of the map. </para> </callout> <callout ""arearefs=\"mapkey3\"> <para> <literal>type</literal> (reguired): The type of ""the map keys. </para> </callout> </calloutlist> </programlistingco> ""<programlistingco> <areaspec> <area id=\"indexmanytomany1\" coords=\"2 45\"/""> <area id=\"indexmanytomany2\" coords=\"3 45\"/> <area id=\"indexmanytomany3""\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<map-key-many-to-""many\n"" column=\"column_name\"\n"" formula=\"any SQL expression\"\n"" class=\"ClassName\"\n""/>]]></programlisting> <calloutlist> <callout arearefs=\"indexmanytomany1\"> ""<para> <literal>column</literal> (optional): The name of the foreign key ""column for the collection index values. </para> </callout> <callout arearefs=""\"indexmanytomany2\"> <para> <literal>formula</literal> (optional): A SQL ""formula used to evaluate the foreign key of the map key. </para> </callout> ""<callout arearefs=\"indexmanytomany3\"> <para> <literal>class</literal> ""(required): The entity class used as the map key. </para> </callout> </""calloutlist> </programlistingco>"msgstr """<programlistingco> <areaspec> <area id=\"index1\" coords=\"2 45\"/> <area id=""\"index2\" coords=\"3 45\"/> </areaspec> <programlisting><![CDATA[<list-""index \n"" column=\"column_name\"\n"" base=\"0|1|...\"/>]]></programlisting> <calloutlist> <callout ""arearefs=\"index1\"> <para> <literal>column_name</literal> (requerido): El ""nombre de la columna que tiene los valores índice de la ""colección. </para> </callout> <callout arearefs=\"index1\"> <para> ""<literal>base</literal> (opcional, por defecto a <literal>0</literal>): El ""valor de la columna índice que corresponde al primer elemento de la ""lista o array. </para> </callout> </calloutlist> </programlistingco> ""<programlistingco> <areaspec> <area id=\"mapkey1\" coords=\"2 45\"/> <area ""id=\"mapkey2\" coords=\"3 45\"/> <area id=\"mapkey3\" coords=\"4 45\"/> </""areaspec> <programlisting><![CDATA[<map-key \n"" column=\"column_name\"\n"" formula=\"any SQL expression\"\n"" type=\"type_name\"\n"" node=\"@attribute-name\"\n"" length=\"N\"/>]]></programlisting> <calloutlist> <callout arearefs=""\"mapkey1\"> <para> <literal>column</literal> (opcional): El nombre de la ""columna que tiene los valores índice de la colección. </para> ""</callout> <callout arearefs=\"mapkey2\"> <para> <literal>formula</literal> ""(opcional): Una fórmula SQL usada para evaluar la clave del mapa. </""para> </callout> <callout arearefs=\"mapkey3\"> <para> <literal>type</""literal> (requerido): el tipo de las claves del mapa. </para> </callout> </""calloutlist> </programlistingco> <programlistingco> <areaspec> <area id=""\"indexmanytomany1\" coords=\"2 45\"/> <area id=\"indexmanytomany2\" coords=""\"3 45\"/> <area id=\"indexmanytomany3\" coords=\"3 45\"/> </areaspec> ""<programlisting><![CDATA[<map-key-many-to-many\n"" column=\"column_name\"\n"" formula=\"any SQL expression\"\n"" class=\"ClassName\"\n""/>]]></programlisting> <calloutlist> <callout arearefs=\"indexmanytomany1\"> ""<para> <literal>column</literal> (opcional): El nombre de la columna clave ""foránea para los valores índice de la colección. </""para> </callout> <callout arearefs=\"indexmanytomany2\"> <para> ""<literal>formula</literal> (opcional): Una fórmula SQL usada para ""evaluar la clave foránea de la clave del mapa. </para> </callout> ""<callout arearefs=\"indexmanytomany3\"> <para> <literal>class</literal> ""(requerido): La clase de entidad usada como clave del mapa. </para> </""callout> </calloutlist> </programlistingco>"#: index.docbook:348msgid """If your table doesn't have an index column, and you still wish to use ""<literal>List</literal> as the property type, you should map the property as ""a Hibernate <emphasis><bag></emphasis>. A bag does not retain its ""order when it is retrieved from the database, but it may be optionally ""sorted or ordered."msgstr """Si tu tabla no tiene una columna índice, y deseas aún usar ""<literal>List</literal> como tipo de propiedad, debes mapear la propiedad ""como un <emphasis><bag></emphasis> de Hibernate. Un bag (bolsa) no ""retiene su orden al ser recuperado de la base de datos, pero puede ser ""ordenado o clasificado opcionalmente."#: index.docbook:357msgid """There are quite a range of mappings that can be generated for collections, ""covering many common relational models. We suggest you experiment with the ""schema generation tool to get a feeling for how various mapping declarations ""translate to database tables."msgstr """Hay absolutamente un rango de mapeos que pueden ser generados para "
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -