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

📄 basic_mapping.po

📁 hibernate-distribution-3.3.1.GA-dist.zip源码
💻 PO
📖 第 1 页 / 共 5 页
字号:
msgstr """Choisit <literal>identity</literal>, <literal>sequence</literal> ou ""<literal>hilo</literal> selon les possibilités offertes par la base de ""données sous-jacente."#. Tag: literal#: basic_mapping.xml:656#, no-c-formatmsgid "assigned"msgstr "assigned"#. Tag: para#: basic_mapping.xml:658#, no-c-formatmsgid """lets the application to assign an identifier to the object before ""<literal>save()</literal> is called. This is the default strategy if no ""<literal>&lt;generator&gt;</literal> element is specified."msgstr """Laisse l'application affecter un identifiant à l'objet avant que la métode ""<literal>save()</literal> soit appelée. Il s'agit de la stratégie par défaut ""si aucun <literal>&lt;generator&gt;</literal> n'est spécifié."#. Tag: literal#: basic_mapping.xml:666#, no-c-formatmsgid "select"msgstr "select"#. Tag: para#: basic_mapping.xml:668#, no-c-formatmsgid """retrieves a primary key assigned by a database trigger by selecting the row ""by some unique key and retrieving the primary key value."msgstr """Récupère une clef primaire assignée par un trigger en sélectionnant la ligne ""par une clef unique quelconque."#. Tag: literal#: basic_mapping.xml:675#, no-c-formatmsgid "foreign"msgstr "foreign"#. Tag: para#: basic_mapping.xml:677#, no-c-formatmsgid """uses the identifier of another associated object. Usually used in ""conjunction with a <literal>&lt;one-to-one&gt;</literal> primary key ""association."msgstr """Utilise l'identifiant d'un objet associé. Habituellement utilisé en ""conjonction avec une association <literal>&lt;one-to-one&gt;</literal> sur ""la clef primaire."#. Tag: literal#: basic_mapping.xml:684#, no-c-formatmsgid "sequence-identity"msgstr "sequence-identity"#. Tag: para#: basic_mapping.xml:686#, no-c-formatmsgid """a specialized sequence generation strategy which utilizes a database ""sequence for the actual value generation, but combines this with JDBC3 ""getGeneratedKeys to actually return the generated identifier value as part ""of the insert statement execution. This strategy is only known to be ""supported on Oracle 10g drivers targetted for JDK 1.4. Note comments on ""these insert statements are disabled due to a bug in the Oracle drivers."msgstr """a specialized sequence generation strategy which utilizes a database ""sequence for the actual value generation, but combines this with JDBC3 ""getGeneratedKeys to actually return the generated identifier value as part ""of the insert statement execution. This strategy is only known to be ""supported on Oracle 10g drivers targetted for JDK 1.4. Note comments on ""these insert statements are disabled due to a bug in the Oracle drivers."#. Tag: title#: basic_mapping.xml:703#, no-c-formatmsgid "Hi/lo algorithm"msgstr "algorithme Hi/lo"#. Tag: para#: basic_mapping.xml:704#, no-c-formatmsgid """The <literal>hilo</literal> and <literal>seqhilo</literal> generators ""provide two alternate implementations of the hi/lo algorithm, a favorite ""approach to identifier generation. The first implementation requires a ""\"special\" database table to hold the next available \"hi\" value. The ""second uses an Oracle-style sequence (where supported)."msgstr """Les générateurs <literal>hilo</literal> et <literal>seqhilo</literal> ""proposent deux implémentations alternatives de l'algorithme hi/lo, une ""approche largement utilisée pour générer des identifiants. La première ""implémentation nécessite une table \"spéciale\" en base pour héberger la ""prochaine valeur \"hi\" disponible. La seconde utilise une séquence de type ""Oracle (quand la base sous-jacente le propose)."#. Tag: programlisting#: basic_mapping.xml:711#, no-c-formatmsgid """<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n""        <generator class=\"hilo\">\n""                <param name=\"table\">hi_value</param>\n""                <param name=\"column\">next_value</param>\n""                <param name=\"max_lo\">100</param>\n""        </generator>\n""</id>]]>"msgstr ""#. Tag: programlisting#: basic_mapping.xml:713#, no-c-formatmsgid """<![CDATA[<id name=\"id\" type=\"long\" column=\"cat_id\">\n""        <generator class=\"seqhilo\">\n""                <param name=\"sequence\">hi_value</param>\n""                <param name=\"max_lo\">100</param>\n""        </generator>\n""</id>]]>"msgstr ""#. Tag: para#: basic_mapping.xml:715#, no-c-formatmsgid """Unfortunately, you can't use <literal>hilo</literal> when supplying your own ""<literal>Connection</literal> to Hibernate. When Hibernate is using an ""application server datasource to obtain connections enlisted with JTA, you ""must properly configure the <literal>hibernate.transaction.""manager_lookup_class</literal>."msgstr """Malheureusement, vous ne pouvez pas utilisez <literal>hilo</literal> quand ""vous apportez votre propre <literal>Connection</literal> à Hibernate. Quand ""Hibernate utilise une datasource du serveur d'application pour obtenir des ""connexions inscrites avec JTA, vous devez correctement configurer ""<literal>hibernate.transaction.manager_lookup_class</literal>."#. Tag: title#: basic_mapping.xml:724#, no-c-formatmsgid "UUID algorithm"msgstr "UUID algorithm"#. Tag: para#: basic_mapping.xml:725#, no-c-formatmsgid """The UUID contains: IP address, startup time of the JVM (accurate to a ""quarter second), system time and a counter value (unique within the JVM). ""It's not possible to obtain a MAC address or memory address from Java code, ""so this is the best we can do without using JNI."msgstr """Le contenu du UUID est : adresse IP, date de démarrage de la JVM (précis au ""quart de seconde), l'heure système et un compteur (unique au sein de la ""JVM). Il n'est pas possible d'obtenir l'adresse MAC ou une adresse mémoire à ""partir de Java, c'est donc le mieux que l'on puisse faire sans utiliser JNI."#. Tag: title#: basic_mapping.xml:734#, no-c-formatmsgid "Identity columns and sequences"msgstr "Colonnes identifiantes et séquences"#. Tag: para#: basic_mapping.xml:735#, no-c-formatmsgid """For databases which support identity columns (DB2, MySQL, Sybase, MS SQL), ""you may use <literal>identity</literal> key generation. For databases that ""support sequences (DB2, Oracle, PostgreSQL, Interbase, McKoi, SAP DB) you ""may use <literal>sequence</literal> style key generation. Both these ""strategies require two SQL queries to insert a new object."msgstr """Pour les bases qui implémentent les colonnes \"identité\" (DB2, MySQL, ""Sybase, MS SQL), vous pouvez utiliser la génération de clef par ""<literal>identity</literal>. Pour les bases qui implémentent les séquences ""(DB2, Oracle, PostgreSQL, Interbase, McKoi, SAP DB) vous pouvez utiliser la ""génération de clef par <literal>sequence</literal>. Ces deux méthodes ""nécessitent deux requêtes SQL pour insérer un objet."#. Tag: programlisting#: basic_mapping.xml:743#, no-c-formatmsgid """<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n""        <generator class=\"sequence\">\n""                <param name=\"sequence\">person_id_sequence</param>\n""        </generator>\n""</id>]]>"msgstr ""#. Tag: programlisting#: basic_mapping.xml:745#, no-c-formatmsgid """<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\" unsaved-value=\"0""\">\n""        <generator class=\"identity\"/>\n""</id>]]>"msgstr ""#. Tag: para#: basic_mapping.xml:747#, no-c-formatmsgid """For cross-platform development, the <literal>native</literal> strategy will ""choose from the <literal>identity</literal>, <literal>sequence</literal> and ""<literal>hilo</literal> strategies, dependant upon the capabilities of the ""underlying database."msgstr """Pour le développement multi-plateformes, la stratégie <literal>native</""literal> choisira entre les méthodes <literal>identity</literal>, ""<literal>sequence</literal> et <literal>hilo</literal>, selon les ""possibilités offertes par la base sous-jacente."#. Tag: title#: basic_mapping.xml:756#, no-c-formatmsgid "Assigned identifiers"msgstr "Identifiants assignés"#. Tag: para#: basic_mapping.xml:757#, no-c-formatmsgid """If you want the application to assign identifiers (as opposed to having ""Hibernate generate them), you may use the <literal>assigned</literal> ""generator. This special generator will use the identifier value already ""assigned to the object's identifier property. This generator is used when ""the primary key is a natural key instead of a surrogate key. This is the ""default behavior if you do no specify a <literal>&lt;generator&gt;</literal> ""element."msgstr """Si vous souhaitez que l'application assigne des identifiants (par opposition ""à la génération par Hibernate), vous pouvez utiliser le générateur ""<literal>assigned</literal>. Ce générateur spécial utilisera une valeur ""d'identifiant déjà utilisé par la propriété identifiant l'objet. Ce ""générateur est utilisé quand la clef primaire est une clef naturelle plutôt ""qu'une clef secondaire. C'est le comportement par défaut si vous ne précisez ""pas d'élément <literal>&lt;generator&gt;</literal>."#. Tag: para#: basic_mapping.xml:766#, no-c-formatmsgid """Choosing the <literal>assigned</literal> generator makes Hibernate use ""<literal>unsaved-value=\"undefined\"</literal>, forcing Hibernate to go to ""the database to determine if an instance is transient or detached, unless ""there is a version or timestamp property, or you define <literal>Interceptor.""isUnsaved()</literal>."msgstr """Choisir le générateur <literal>assigned</literal> fait utiliser ""<literal>unsaved-value=\"undefined\"</literal> par Hibernate, le forçant à ""interroger la base pour déterminer si l'instance est transiente ou détachée, ""à moins d'utiliser une propriété version ou timestamp, ou alors de définir ""<literal>Interceptor.isUnsaved()</literal>."#. Tag: title#: basic_mapping.xml:776#, no-c-formatmsgid "Primary keys assigned by triggers"msgstr "Clefs primaires assignées par trigger"#. Tag: para#: basic_mapping.xml:777#, no-c-formatmsgid """For legacy schemas only (Hibernate does not generate DDL with triggers)."msgstr """Pour les schémas de base hérités d'anciens systèmes uniquement (Hibernate ne ""génère pas de DDL avec des triggers)"#. Tag: programlisting#: basic_mapping.xml:781#, no-c-formatmsgid """<![CDATA[<id name=\"id\" type=\"long\" column=\"person_id\">\n""        <generator class=\"select\">\n""                <param name=\"key\">socialSecurityNumber</param>\n""        </generator>\n""</id>]]>"msgstr ""#. Tag: para#: basic_mapping.xml:783#, no-c-formatmsgid """In the above example, there is a unique valued property named ""<literal>socialSecurityNumber</literal> defined by the class, as a natural ""key, and a surrogate key named <literal>person_id</literal> whose value is ""generated by a trigger."msgstr """Dans l'exemple ci-dessus, <literal>socialSecurityNumber</literal> a une ""valeur unique définie par la classe en tant que clef naturelle et ""<literal>person_id</literal> est une clef secondaire dont la valeur est ""générée par trigger."#. Tag: title#: basic_mapping.xml:795#, no-c-formatmsgid "Enhanced identifier generators"msgstr "Enhanced identifier generators"#. Tag: para#: basic_mapping.xml:797#, no-c-formatmsgid """Starting with release 3.2.3, there are 2 new generators which represent a re-""thinking of 2 different aspects of identifier generation. The first aspect ""is database portability; the second is optimization (not having to query the ""database for every request for a new identifier value). These two new ""generators are intended to take the place of some of the named generators ""described above (starting in 3.3.x); however, they are included in the ""current releases and can be referenced by FQN."msgstr """Starting with release 3.2.3, there are 2 new generators which represent a re-""thinking of 2 different aspects of identifier generation. The first aspect ""is database portability; the second is optimization (not having to query the ""database for every request for a new identifier value). These two new ""generators are intended to take the place of some of the named generators ""described above (starting in 3.3.x); however

⌨️ 快捷键说明

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