📄 basic_mapping.po
字号:
msgid """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 """一种特别的序列生成策略,使用数据库序列来生成实际值,但将它和JDBC3的""getGeneratedKeys结合在一起,使得在插入语句执行的时候就返回生成的值。目前为止只""有面向JDK 1.4的Oracle 10g驱动支持这一策略。注意,因为Oracle驱动程序的一个""bug,这些插入语句的注释被关闭了。(原文: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 "高/低位算法(Hi/Lo Algorithm)"#. 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 """<literal>hilo</literal> 和 <literal>seqhilo</literal>生成器给出了两种hi/lo算""法的实现, 这是一种很令人满意的标识符生成算法。第一种实现需要一个“特殊”的数据""库表来保存下一个可用的“hi”值。 第二种实现使用一个Oracle风格的序列(在被支持的""情况下)。"#. 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 """很不幸,你在为Hibernate自行提供<literal>Connection</literal>时无法使用""<literal>hilo</literal>。 当Hibernate使用JTA获取应用服务器的数据源连接时,你必""须正确地配置 <literal>hibernate.transaction.manager_lookup_class</literal>。"#. Tag: title#: basic_mapping.xml:724#, no-c-formatmsgid "UUID algorithm"msgstr "UUID算法(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 """UUID包含:IP地址,JVM的启动时间(精确到1/4秒),系统时间和一个计数器值(在JVM""中唯一)。 在Java代码中不可能获得MAC地址或者内存地址,所以这已经是我们在不使""用JNI的前提下的能做的最好实现了。"#. Tag: title#: basic_mapping.xml:734#, no-c-formatmsgid "Identity columns and sequences"msgstr "标识字段和序列(Identity columns and Sequences)"#. 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 """对于内部支持标识字段的数据库(DB2,MySQL,Sybase,MS SQL),你可以使用""<literal>identity</literal>关键字生成。 对于内部支持序列的数据库(DB2,""Oracle, PostgreSQL, Interbase, McKoi,SAP DB), 你可以使用<literal>sequence</""literal>风格的关键字生成。 这两种方式对于插入一个新的对象都需要两次SQL查询。"#. 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 """对于跨平台开发,<literal>native</literal>策略会从<literal>identity</""literal>, <literal>sequence</literal> 和<literal>hilo</literal>中进行选择,选""择哪一个,这取决于底层数据库的支持能力。"#. Tag: title#: basic_mapping.xml:756#, no-c-formatmsgid "Assigned identifiers"msgstr "程序分配的标识符(Assigned Identifiers)"#. 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><generator></literal> ""element."msgstr """如果你需要应用程序分配一个标示符(而非Hibernate来生成),你可以使用""<literal>assigned</literal> 生成器。这种特殊的生成器会使用已经分配给对象的标""识符属性的标识符值。 这个生成器使用一个自然键(natural key,有商业意义的列-""译注)作为主键,而不是使用一个代理键( surrogate key,没有商业意义的列-译""注)。这是没有指定<literal><generator></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 """当选择<literal>assigned</literal>生成器时,除非有一个version或timestamp属性,""或者你定义了 <literal>Interceptor.isUnsaved()</literal>,否则需要让Hiberante""使用 <literal>unsaved-value=\"undefined\"</literal>,强制Hibernatet查询数据库""来确定一个实例是瞬时的(transient) 还是脱管的(detached)。"#. Tag: title#: basic_mapping.xml:776#, no-c-formatmsgid "Primary keys assigned by triggers"msgstr "触发器实现的主键生成器(Primary keys assigned by triggers)"#. Tag: para#: basic_mapping.xml:777#, no-c-formatmsgid """For legacy schemas only (Hibernate does not generate DDL with triggers)."msgstr "仅仅用于遗留的schema中 (Hibernate不能使用触发器生成DDL)。"#. 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 """在上面的例子中,类定义了一个命名为<literal>socialSecurityNumber</literal>的唯""一值属性, 它是一个自然键(natural key),命名为<literal>person_id</literal>""的代理键(surrogate key) 的值由触发器生成。"#. 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, they are included in the ""current releases and can be referenced by FQN."#. Tag: para#: basic_mapping.xml:805#, fuzzy, no-c-formatmsgid """The first of these new generators is <literal>org.hibernate.id.enhanced.""SequenceStyleGenerator</literal> which is intended firstly as a replacement ""for the <literal>sequence</literal> generator and secondly as a better ""portability generator than <literal>native</literal> (because ""<literal>native</literal> (generally) chooses between <literal>identity</""literal> and <literal>sequence</literal> which have largely different ""semantics which can cause subtle isssues in applications eyeing ""portability). <literal>org.hibernate.id.enhanced.SequenceStyleGenerator</""literal> however achieves portability in a different manner. It chooses ""between using a table or a sequence in the database to store its ""incrementing values depending on the capabilities of the dialect being used. ""The difference between this and <literal>native</literal> is that table-""based and sequence-based storage have the same exact semantic (in fact ""sequences are exactly what Hibernate tries to emmulate with its table-based ""generators). This generator has a number of configuration parameters:"msgstr """The first of these new generators is <literal>org.hibernate.id.enhanced.""SequenceStyleGenerator</literal> which is intended firstly as a replacement ""for the <literal>sequence</literal> generator and secondly as a better ""portability generator than <literal>native</literal> (because ""<literal>native</literal> (generally) chooses between <literal>identity</""literal> and <literal>sequence</literal> which have largely different ""semantics which can cause subtle isssues in applications eyeing ""portability). <literal>org.hibernate.id.enhanced.SequenceStyleGenerator</""literal> however achieves portability in a different manner. It chooses ""between using a table or a sequence in the database to store its ""incrementing values depending on the capabilities of the dialect being used. ""The difference between this and <literal>native</literal> is that table-""based and sequence-based storage have the same exact semantic (in fact ""sequences are exactly what Hibernate tries to emmulate with its table-based ""generators). This generator has a number of configuration parameters: ""<placeholder-1/>"#. Tag: para#: basic_mapping.xml:819#, no-c-formatmsgid """<literal>sequence_name</literal> (optional, defaults to ""<literal>hibernate_sequence</literal>): The name of the sequence (or table) ""to be used."msgstr """<literal>sequence_name</literal> (optional, defaults to ""<literal>hibernate_sequence</literal>): The name of the sequence (or table) ""to be used."#. Tag: para#: basic_mapping.xml:825#, no-c-formatmsgid """<literal>initial_value</literal> (optional, defaults to <literal>1</""literal>): The initial value to be retrieved from the sequence/table. In ""sequence creation terms, this is analogous to the clause typical named ""\"STARTS WITH\"."msgstr """<literal>initial_value</literal> (optional, defaults to <literal>1</""literal>): The initial value to be retrieved from the sequence/table. In ""sequence creation terms, this is analogous to the clause typical named ""\"STARTS WITH\"."#. Tag: para#: basic_mapping.xml:832#, no-c-formatmsgid """<literal>increment_size</literal> (optional, defaults to <literal>1</""literal>): The value by which subsequent calls to the sequence/table should ""differ. In
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -