📄 association_mapping.po
字号:
#: index.docbook:115msgid """<![CDATA[<class name=\"Person\">\n"" <id name=\"id\" column=\"personId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <join table=\"PersonAddress\" \n"" optional=\"true\">\n"" <key column=\"personId\" unique=\"true\"/>\n"" <many-to-one name=\"address\"\n"" column=\"addressId\" \n"" not-null=\"true\"/>\n"" </join>\n""</class>\n""\n""<class name=\"Address\">\n"" <id name=\"id\" column=\"addressId\">\n"" <generator class=\"native\"/>\n"" </id>\n""</class>]]>"msgstr """<![CDATA[<class name=\"Person\">\n"" <id name=\"id\" column=\"personId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <join table=\"PersonAddress\" \n"" optional=\"true\">\n"" <key column=\"personId\" unique=\"true\"/>\n"" <many-to-one name=\"address\"\n"" column=\"addressId\" \n"" not-null=\"true\"/>\n"" </join>\n""</class>\n""\n""<class name=\"Address\">\n"" <id name=\"id\" column=\"addressId\">\n"" <generator class=\"native\"/>\n"" </id>\n""</class>]]>"#: index.docbook:116msgid """<![CDATA[\n""create table Person ( personId bigint not null primary key )\n""create table PersonAddress ( personId bigint not null primary key, addressId ""bigint not null )\n""create table Address ( addressId bigint not null primary key )\n"" ]]>"msgstr """<![CDATA[\n""create table Person ( personId bigint not null primary key )\n""create table PersonAddress ( personId bigint not null primary key, addressId ""bigint not null )\n""create table Address ( addressId bigint not null primary key )\n"" ]]>"#: index.docbook:123msgid """A <emphasis>unidirectional one-to-one association on a join table</emphasis> ""is extremely unusual, but possible."msgstr """Una <emphasis>asociación unidireccional uno-a-uno en una tabla de ""unión</emphasis> es inusual en extremo, pero posible."#: index.docbook:128msgid """<![CDATA[<class name=\"Person\">\n"" <id name=\"id\" column=\"personId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <join table=\"PersonAddress\" \n"" optional=\"true\">\n"" <key column=\"personId\" \n"" unique=\"true\"/>\n"" <many-to-one name=\"address\"\n"" column=\"addressId\" \n"" not-null=\"true\"\n"" unique=\"true\"/>\n"" </join>\n""</class>\n""\n""<class name=\"Address\">\n"" <id name=\"id\" column=\"addressId\">\n"" <generator class=\"native\"/>\n"" </id>\n""</class>]]>"msgstr """<![CDATA[<class name=\"Person\">\n"" <id name=\"id\" column=\"personId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <join table=\"PersonAddress\" \n"" optional=\"true\">\n"" <key column=\"personId\" \n"" unique=\"true\"/>\n"" <many-to-one name=\"address\"\n"" column=\"addressId\" \n"" not-null=\"true\"\n"" unique=\"true\"/>\n"" </join>\n""</class>\n""\n""<class name=\"Address\">\n"" <id name=\"id\" column=\"addressId\">\n"" <generator class=\"native\"/>\n"" </id>\n""</class>]]>"#: index.docbook:129, index.docbook:233msgid """<![CDATA[\n""create table Person ( personId bigint not null primary key )\n""create table PersonAddress ( personId bigint not null primary key, addressId ""bigint not null unique )\n""create table Address ( addressId bigint not null primary key )\n"" ]]>"msgstr """<![CDATA[\n""create table Person ( personId bigint not null primary key )\n""create table PersonAddress ( personId bigint not null primary key, addressId ""bigint not null unique )\n""create table Address ( addressId bigint not null primary key )\n"" ]]>"#: index.docbook:134, index.docbook:238msgid "many to many"msgstr "muchos a muchos"#: index.docbook:136msgid """Finally, we have a <emphasis>unidirectional many-to-many association</""emphasis>."msgstr """Finalmente, tenemos una <emphasis>asociación unidireccional muchos-a-""muchos</emphasis>"#: index.docbook:140msgid """<![CDATA[<class name=\"Person\">\n"" <id name=\"id\" column=\"personId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <set name=\"addresses\" table=\"PersonAddress\">\n"" <key column=\"personId\"/>\n"" <many-to-many column=\"addressId\"\n"" class=\"Address\"/>\n"" </set>\n""</class>\n""\n""<class name=\"Address\">\n"" <id name=\"id\" column=\"addressId\">\n"" <generator class=\"native\"/>\n"" </id>\n""</class>]]>"msgstr """<![CDATA[<class name=\"Person\">\n"" <id name=\"id\" column=\"personId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <set name=\"addresses\" table=\"PersonAddress\">\n"" <key column=\"personId\"/>\n"" <many-to-many column=\"addressId\"\n"" class=\"Address\"/>\n"" </set>\n""</class>\n""\n""<class name=\"Address\">\n"" <id name=\"id\" column=\"addressId\">\n"" <generator class=\"native\"/>\n"" </id>\n""</class>]]>"#: index.docbook:141, index.docbook:246msgid """<![CDATA[\n""create table Person ( personId bigint not null primary key )\n""create table PersonAddress ( personId bigint not null, addressId bigint not ""null, primary key (personId, addressId) )\n""create table Address ( addressId bigint not null primary key )\n"" ]]>"msgstr """<![CDATA[\n""create table Person ( personId bigint not null primary key )\n""create table PersonAddress ( personId bigint not null, addressId bigint not ""null, primary key (personId, addressId) )\n""create table Address ( addressId bigint not null primary key )\n"" ]]>"#: index.docbook:148msgid "Bidirectional associations"msgstr "Asociaciones Bidireccionales"#: index.docbook:151, index.docbook:211msgid "one to many / many to one"msgstr "uno a muchos / muchos a uno"#: index.docbook:153msgid """A <emphasis>bidirectional many-to-one association</emphasis> is the most ""common kind of association. (This is the standard parent/child relationship.)"msgstr """Una <emphasis>asociación bidireccional muchos-a-uno</emphasis> es el ""tipo más común de asociación. (Esta es la relació""n estándar padre/hijo.)"#: index.docbook:159msgid """<![CDATA[<class name=\"Person\">\n"" <id name=\"id\" column=\"personId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <many-to-one name=\"address\" \n"" column=\"addressId\"\n"" not-null=\"true\"/>\n""</class>\n""\n""<class name=\"Address\">\n"" <id name=\"id\" column=\"addressId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <set name=\"people\" inverse=\"true\">\n"" <key column=\"addressId\"/>\n"" <one-to-many class=\"Person\"/>\n"" </set>\n""</class>]]>"msgstr """<![CDATA[<class name=\"Person\">\n"" <id name=\"id\" column=\"personId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <many-to-one name=\"address\" \n"" column=\"addressId\"\n"" not-null=\"true\"/>\n""</class>\n""\n""<class name=\"Address\">\n"" <id name=\"id\" column=\"addressId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <set name=\"people\" inverse=\"true\">\n"" <key column=\"addressId\"/>\n"" <one-to-many class=\"Person\"/>\n"" </set>\n""</class>]]>"#: index.docbook:163msgid """If you use a <literal>List</literal> (or other indexed collection) you need ""to set the <literal>key</literal> column of the foreign key to <literal>not ""null</literal>, and let Hibernate manage the association from the ""collections side to maintain the index of each element (making the other ""side virtually inverse by setting <literal>update=\"false\"</literal> and ""<literal>insert=\"false\"</literal>):"msgstr """UNTRANSLATED! If you use a <literal>List</literal> (or other indexed ""collection) you need to set the <literal>key</literal> column of the foreign ""key to <literal>not null</literal>, and let Hibernate manage the association ""from the collections side to maintain the index of each element (making the ""other side virtually inverse by setting <literal>update=\"false\"</literal> ""and <literal>insert=\"false\"</literal>):"#: index.docbook:171msgid """<![CDATA[<class name=\"Person\">\n"" <id name=\"id\"/>\n"" ...\n"" <many-to-one name=\"address\"\n"" column=\"addressId\"\n"" not-null=\"true\"\n"" insert=\"false\"\n"" update=\"false\"/>\n""</class>\n""\n""<class name=\"Address\">\n"" <id name=\"id\"/>\n"" ...\n"" <list name=\"people\">\n"" <key column=\"addressId\" not-null=\"true\"/>\n"" <list-index column=\"peopleIdx\"/>\n"" <one-to-many class=\"Person\"/>\n"" </list>\n""</class>]]>"msgstr """<![CDATA[<class name=\"Person\">\n"" <id name=\"id\"/>\n"" ...\n"" <many-to-one name=\"address\"\n"" column=\"addressId\"\n"" not-null=\"true\"\n"" insert=\"false\"\n"" update=\"false\"/>\n"" </class>\n"" \n"" <class name=\"Address\">\n"" <id name=\"id\"/>\n"" ...\n"" <list name=\"people\">\n"" <key column=\"addressId\" not-null=\"true\"/"">\n"" <list-index column=\"peopleIdx\"/>\n"" <one-to-many class=\"Person\"/>\n"" </list>\n"" </class>]]>"#: index.docbook:173msgid """It is important that you define <literal>not-null=\"true\"</literal> on the ""<literal><key></literal> element of the collection mapping if the ""underlying foreign key column is <literal>NOT NULL</literal>. Don't only ""declare <literal>not-null=\"true\"</literal> on a possible nested ""<literal><column></literal> element, but on the <literal><key></""literal> element."msgstr """UNTRANSLATED! It is important that you define <literal>not-null=\"true\"</""literal> on the <literal><key></literal> element of the collection ""mapping if the underlying foreign key column is <literal>NOT NULL</literal>. ""Don't only declare <literal>not-null=\"true\"</literal> on a possible nested ""<literal><column></literal> element, but on the <literal><key></""literal> element."#: index.docbook:187msgid """A <emphasis>bidirectional one-to-one association on a foreign key</emphasis> ""is quite common."msgstr """Una <emphasis>asociación bidireccional uno-a-uno en una clave ""foránea</emphasis> es bastante común."#: index.docbook:192msgid """<![CDATA[<class name=\"Person\">\n"" <id name=\"id\" column=\"personId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <many-to-one name=\"address\" \n"" column=\"addressId\" \n"" unique=\"true\"\n"" not-null=\"true\"/>\n""</class>\n""\n""<class name=\"Address\">\n"" <id name=\"id\" column=\"addressId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <one-to-one name=\"person\" \n"" property-ref=\"address\"/>\n""</class>]]>"msgstr """<![CDATA[<class name=\"Person\">\n"" <id name=\"id\" column=\"personId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <many-to-one name=\"address\" \n"" column=\"addressId\" \n"" unique=\"true\"\n"" not-null=\"true\"/>\n""</class>\n""\n""<class name=\"Address\">\n"" <id name=\"id\" column=\"addressId\">\n"" <generator class=\"native\"/>\n"" </id>\n"" <one-to-one name=\"person\" \n"" property-ref=\"address\"/>\n""</class>]]>"#: index.docbook:195msgid """A <emphasis>bidirectional one-to-one association on a primary key</emphasis> ""uses the special id generator."msgstr """Una <emphasis>asociación bidireccional uno-a-uno en una clave ""primaria</emphasis> usa el generador de id especial."#: index.docbook:200
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -