|
Hibernate example source code file (configuration.po)
This example Hibernate source code file (configuration.po) is included in the DevDaily.com
"Java Source Code
Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.
The Hibernate configuration.po source code
# translation of Collection_Mapping.po to
# Xi Huang <xhuang@redhat.com>, 2006.
# Xi HUANG <xhuang@redhat.com>, 2007.
msgid ""
msgstr ""
"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2010-07-20 21:02+0000\n"
"PO-Revision-Date: 2010-03-15 09:03+1000\n"
"Last-Translator: Xi HUANG <xhuang@redhat.com>\n"
"Language-Team: <en@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
#. Tag: title
#: configuration.xml:31
#, no-c-format
msgid "Configuration"
msgstr "é…ç½®"
#. Tag: para
#: configuration.xml:33
#, no-c-format
msgid ""
"Hibernate is designed to operate in many different environments and, as "
"such, there is a broad range of configuration parameters. Fortunately, most "
"have sensible default values and Hibernate is distributed with an example "
"<literal>hibernate.properties file in etc/ that "
"displays the various options. Simply put the example file in your classpath "
"and customize it to suit your needs."
msgstr ""
"由于 Hibernate 是为了能在å„ç§ä¸åŒçŽ¯å¢ƒä¸‹å·¥ä½œè€Œè®¾è®¡çš„ï¼Œå› æ¤å˜åœ¨ç€å¤§é‡çš„é…ç½®å‚"
"数。幸è¿çš„是多数é…ç½®å‚æ•°éƒ½æœ‰æ¯”è¾ƒç›´è§‚çš„é»˜è®¤å€¼ï¼Œå¹¶æœ‰éš Hibernate 一åŒåˆ†å‘çš„é…ç½®"
"æ ·ä¾‹ <literal>hibernate.properties(ä½äºŽ etc/)"
"æ¥å±•ç¤ºå„ç§é…置选项。所需åšçš„ä»…ä»…æ˜¯å°†è¿™ä¸ªæ ·ä¾‹æ–‡ä»¶å¤åˆ¶åˆ°ç±»è·¯å¾„(classpath)下并"
"进行定制。"
#. Tag: title
#: configuration.xml:41
#, no-c-format
msgid "Programmatic configuration"
msgstr "å¯ç¼–程的é…置方å¼"
#. Tag: para
#: configuration.xml:43
#, no-c-format
msgid ""
"An instance of <classname>org.hibernate.cfg.Configuration "
"represents an entire set of mappings of an application's Java types to an "
"SQL database. The <classname>org.hibernate.cfg.Configuration is "
"used to build an immutable <interfacename>org.hibernate.SessionFactory 实例代表了一个应用程åºä¸ "
"Java 类型到SQLæ•°æ®åº“æ˜ å°„çš„å®Œæ•´é›†åˆã€‚<classname>org.hibernate.cfg."
"Configuration</classname> 被用æ¥æž„建一个(ä¸å¯å˜çš„(immutable))"
"<interfacename>org.hibernate.SessionFactoryã€‚æ˜ å°„å®šä¹‰åˆ™ç”±ä¸åŒ"
"çš„ XML æ˜ å°„å®šä¹‰æ–‡ä»¶ç¼–è¯‘è€Œæ¥ã€‚"
#. Tag: para
#: configuration.xml:51
#, no-c-format
msgid ""
"You can obtain a <classname>org.hibernate.cfg.Configuration "
"instance by instantiating it directly and specifying XML mapping documents. "
"If the mapping files are in the classpath, use <literal>addResource() æ¥èŽ·"
"å–一个实例,并为它指定 XML æ˜ å°„å®šä¹‰æ–‡ä»¶ã€‚å¦‚æžœæ˜ å°„å®šä¹‰æ–‡ä»¶åœ¨ç±»è·¯å¾„"
"(classpath)ä¸ï¼Œè¯·ä½¿ç”¨ <literal>addResource()。例如:"
#. Tag: programlisting
#: configuration.xml:57
#, fuzzy, no-c-format
msgid ""
"Configuration cfg = new Configuration()\n"
" .addResource(\"Item.hbm.xml\")\n"
" .addResource(\"Bid.hbm.xml\");"
msgstr ""
"<![CDATA[Configuration cfg = new Configuration()\n"
" .addResource(\"Item.hbm.xml\")\n"
" .addResource(\"Bid.hbm.xml\");]]>"
#. Tag: para
#: configuration.xml:59
#, no-c-format
msgid ""
"An alternative way is to specify the mapped class and allow Hibernate to "
"find the mapping document for you:"
msgstr ""
"ä¸€ä¸ªæ›¿ä»£æ–¹æ³•ï¼ˆæœ‰æ—¶æ˜¯æ›´å¥½çš„é€‰æ‹©ï¼‰æ˜¯ï¼ŒæŒ‡å®šè¢«æ˜ å°„çš„ç±»ï¼Œè®© Hibernate å¸®ä½ å¯»æ‰¾æ˜ å°„"
"定义文件: "
#. Tag: programlisting
#: configuration.xml:62
#, fuzzy, no-c-format
msgid ""
"Configuration cfg = new Configuration()\n"
" .addClass(org.hibernate.auction.Item.class)\n"
" .addClass(org.hibernate.auction.Bid.class);"
msgstr ""
"<![CDATA[Configuration cfg = new Configuration()\n"
" .addClass(org.hibernate.auction.Item.class)\n"
" .addClass(org.hibernate.auction.Bid.class);]]>"
#. Tag: para
#: configuration.xml:64
#, no-c-format
msgid ""
"Hibernate will then search for mapping files named <filename>/org/hibernate/"
"auction/Item.hbm.xml</filename> and /org/hibernate/auction/Bid.hbm."
"xml</filename> in the classpath. This approach eliminates any hardcoded "
"filenames."
msgstr ""
"Hibernate 将会在类路径(classpath)ä¸å¯»æ‰¾åå—为 <filename>/org/hibernate/"
"auction/Item.hbm.xml</filename> 和 /org/hibernate/auction/Bid.hbm."
"xml</filename> æ˜ å°„å®šä¹‰æ–‡ä»¶ã€‚è¿™ç§æ–¹å¼æ¶ˆé™¤äº†ä»»ä½•å¯¹æ–‡ä»¶å的硬编ç "
"(hardcoded)。"
#. Tag: para
#: configuration.xml:69
#, no-c-format
msgid ""
"A <classname>org.hibernate.cfg.Configuration also allows you to "
"specify configuration properties. For example:"
msgstr ""
"<classname>org.hibernate.cfg.Configuration> 也å…è®¸ä½ æŒ‡å®šé…置属"
"性。例如:"
#. Tag: programlisting
#: configuration.xml:72
#, fuzzy, no-c-format
msgid ""
"Configuration cfg = new Configuration()\n"
" .addClass(org.hibernate.auction.Item.class)\n"
" .addClass(org.hibernate.auction.Bid.class)\n"
" .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect."
"MySQLInnoDBDialect\")\n"
" .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/jdbc/"
"test\")\n"
" .setProperty(\"hibernate.order_updates\", \"true\");"
msgstr ""
"<![CDATA[Configuration cfg = new Configuration()\n"
" .addClass(org.hibernate.auction.Item.class)\n"
" .addClass(org.hibernate.auction.Bid.class)\n"
" .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect."
"MySQLInnoDBDialect\")\n"
" .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/jdbc/"
"test\")\n"
" .setProperty(\"hibernate.order_updates\", \"true\");]]>"
#. Tag: para
#: configuration.xml:74
#, no-c-format
msgid ""
"This is not the only way to pass configuration properties to Hibernate. Some "
"alternative options include:"
msgstr "当然这ä¸æ˜¯å”¯ä¸€çš„ä¼ é€’ Hibernate é…置属性的方å¼ï¼Œå…¶ä»–å¯é€‰æ–¹å¼è¿˜åŒ…括: "
#. Tag: para
#: configuration.xml:79
#, no-c-format
msgid ""
"Pass an instance of <classname>java.util.Properties to "
"<literal>Configuration.setProperties()."
msgstr ""
"ä¼ ä¸€ä¸ª <classname>java.util.Properties 实例给 "
"<literal>Configuration.setProperties()。"
#. Tag: para
#: configuration.xml:84
#, no-c-format
msgid ""
"Place a file named <filename>hibernate.properties in a root "
"directory of the classpath."
msgstr ""
"å°† <filename>hibernate.properties 放置在类路径(classpathï¼‰çš„æ ¹ç›®"
"录下(root directory)。"
#. Tag: para
#: configuration.xml:89
#, no-c-format
msgid ""
"Set <literal>System properties using java -"
"Dproperty=value</literal>."
msgstr ""
"通过 <literal>java -Dproperty=value æ¥è®¾ç½®ç³»ç»Ÿï¼ˆSystem elements in hibernate."
"cfg.xml</literal> (this is discussed later)."
msgstr ""
"在 <literal>hibernate.cfg.xml ä¸åŠ å…¥å…ƒç´ <property>"
"</literal>(ç¨åŽè®¨è®ºï¼‰ã€‚ "
#. Tag: para
#: configuration.xml:99
#, no-c-format
msgid ""
"If you want to get started quickly<filename>hibernate.properties "
"is the easiest approach."
msgstr ""
"å¦‚æžœä½ æƒ³å¿«é€Ÿä¸Šè·¯ï¼Œ<filename>hibernate.properties 就是最容易的途"
"径。"
#. Tag: para
#: configuration.xml:103
#, no-c-format
msgid ""
"The <classname>org.hibernate.cfg.Configuration is intended as a "
"startup-time object that will be discarded once a <literal>SessionFactory 实例被设计æˆå¯åŠ¨æœŸé—´"
"(startup-time)对象,一旦 <literal>SessionFactory 创建完æˆå®ƒå°±è¢«ä¸¢"
"弃了。"
#. Tag: title
#: configuration.xml:109
#, no-c-format
msgid "Obtaining a SessionFactory"
msgstr "获得 SessionFactory"
#. Tag: para
#: configuration.xml:111
#, no-c-format
msgid ""
"When all mappings have been parsed by the <classname>org.hibernate.cfg."
"Configuration</classname>, the application must obtain a factory for "
"<interfacename>org.hibernate.Session instances. This factory "
"is intended to be shared by all application threads:"
msgstr ""
"å½“æ‰€æœ‰æ˜ å°„å®šä¹‰è¢« <classname>org.hibernate.cfg.Configuration 解æž"
"åŽï¼Œåº”用程åºå¿…é¡»èŽ·å¾—ä¸€ä¸ªç”¨äºŽæž„é€ <interfacename>org.hibernate.Session. This is useful "
"if you are using more than one database."
msgstr ""
"Hibernate å…è®¸ä½ çš„åº”ç”¨ç¨‹åºåˆ›å»ºå¤šä¸ª <interfacename>org.hibernate."
"SessionFactory</interfacename> 实例。这对 使用多个数æ®åº“的应用æ¥è¯´å¾ˆæœ‰ç”¨ã€‚"
#. Tag: title
#: configuration.xml:125
#, no-c-format
msgid "JDBC connections"
msgstr "JDBC 连接"
#. Tag: para
#: configuration.xml:127
#, no-c-format
msgid ""
"It is advisable to have the <interfacename>org.hibernate.SessionFactory is "
"as simple as:"
msgstr ""
"é€šå¸¸ä½ å¸Œæœ› <interfacename>org.hibernate.SessionFactory æ¥ä¸º"
"ä½ åˆ›å»ºå’Œç¼“å˜ï¼ˆpool)JDBC è¿žæŽ¥ã€‚å¦‚æžœä½ é‡‡ç”¨è¿™ç§æ–¹å¼ï¼Œåªéœ€è¦å¦‚ä¸‹ä¾‹æ‰€ç¤ºé‚£æ ·ï¼Œæ‰“å¼€"
"一个 <interfacename>org.hibernate.Session:"
#. Tag: programlisting
#: configuration.xml:133
#, fuzzy, no-c-format
msgid "Session session = sessions.openSession(); // open a new Session"
msgstr ""
"<![CDATA[Session session = sessions.openSession(); // open a new Session]]>"
#. Tag: para
#: configuration.xml:135
#, no-c-format
msgid ""
"Once you start a task that requires access to the database, a JDBC "
"connection will be obtained from the pool."
msgstr ""
"ä¸€æ—¦ä½ éœ€è¦è¿›è¡Œæ•°æ®è®¿é—®æ—¶ï¼Œå°±ä¼šä»Žè¿žæŽ¥æ± (connection pool)获得一个 JDBC è¿ž"
"接。 "
#. Tag: para
#: configuration.xml:138
#, no-c-format
msgid ""
"Before you can do this, you first need to pass some JDBC connection "
"properties to Hibernate. All Hibernate property names and semantics are "
"defined on the class <classname>org.hibernate.cfg.Environment. "
"The most important settings for JDBC connection configuration are outlined "
"below."
msgstr ""
"为了使这ç§æ–¹å¼å·¥ä½œèµ·æ¥ï¼Œæˆ‘们需è¦å‘ Hibernate ä¼ é€’ä¸€äº› JDBC 连接的属性。所有 "
"Hibernate 属性的åå—å’Œè¯ä¹‰éƒ½åœ¨ <classname>org.hibernate.cfg.Environment"
#. Tag: emphasis
#: configuration.xml:168
#, fuzzy, no-c-format
msgid "JDBC driver class"
msgstr "<emphasis>JDBC 驱动类"
#. Tag: property
#: configuration.xml:172
#, fuzzy, no-c-format
msgid "hibernate.connection.url"
msgstr "<property>hibernate.connection.url"
#. Tag: emphasis
#: configuration.xml:174
#, no-c-format
msgid "JDBC URL"
msgstr "JDBC URL"
#. Tag: property
#: configuration.xml:178 configuration.xml:265
#, fuzzy, no-c-format
msgid "hibernate.connection.username"
msgstr "<property>hibernate.connection.username"
#. Tag: emphasis
#: configuration.xml:180
#, no-c-format
msgid "database user"
msgstr "database user"
#. Tag: property
#: configuration.xml:184 configuration.xml:271
#, fuzzy, no-c-format
msgid "hibernate.connection.password"
msgstr "<property>hibernate.connection.password"
#. Tag: emphasis
#: configuration.xml:186
#, no-c-format
msgid "database user password"
msgstr "æ•°æ®åº“用户密ç "
#. Tag: property
#: configuration.xml:190
#, fuzzy, no-c-format
msgid "hibernate.connection.pool_size"
msgstr "<property>hibernate.connection.pool_size"
#. Tag: emphasis
#: configuration.xml:192
#, fuzzy, no-c-format
msgid "maximum number of pooled connections"
msgstr "<emphasis>è¿žæŽ¥æ± å®¹é‡ä¸Šé™æ•°ç›®"
#. Tag: para
#: configuration.xml:199
#, no-c-format
msgid ""
"Hibernate's own connection pooling algorithm is, however, quite rudimentary. "
"It is intended to help you get started and is <emphasis>not intended for use "
"in a production system</emphasis>, or even for performance testing. You "
"should use a third party pool for best performance and stability. Just "
"replace the <property>hibernate.connection.pool_size property "
"with connection pool specific settings. This will turn off Hibernate's "
"internal pool. For example, you might like to use c3p0."
msgstr ""
"但 Hibernate è‡ªå¸¦çš„è¿žæŽ¥æ± ç®—æ³•ç›¸å½“ä¸æˆç†Ÿã€‚它åªæ˜¯ä¸ºäº†è®©ä½ 快些上手<emphasis>,并"
"ä¸é€‚åˆç”¨äºŽäº§å“系统</emphasis>或性能测试ä¸ã€‚ å‡ºäºŽæœ€ä½³æ€§èƒ½å’Œç¨³å®šæ€§è€ƒè™‘ä½ åº”è¯¥ä½¿"
"ç”¨ç¬¬ä¸‰æ–¹çš„è¿žæŽ¥æ± ã€‚åªéœ€è¦ç”¨ç‰¹å®šè¿žæŽ¥æ± çš„è®¾ç½®æ›¿æ¢ <literal>hibernate.connection."
"pool_size</literal> å³å¯ã€‚è¿™å°†å…³é— Hibernate è‡ªå¸¦çš„è¿žæŽ¥æ± ã€‚ä¾‹å¦‚ï¼Œä½ å¯èƒ½ä¼šæƒ³"
"用 C3P0。 "
#. Tag: para
#: configuration.xml:208
#, no-c-format
msgid ""
"C3P0 is an open source JDBC connection pool distributed along with Hibernate "
"in the <filename>lib directory. Hibernate will use its "
"<classname>org.hibernate.connection.C3P0ConnectionProvider for "
"connection pooling if you set <property>hibernate.c3p0.* "
"properties. If you would like to use Proxool, refer to the packaged "
"<filename>hibernate.properties and the Hibernate web site for "
"more information."
msgstr ""
"C3P0 æ˜¯ä¸€ä¸ªéš Hibernate 一åŒåˆ†å‘çš„å¼€æºçš„ JDBC è¿žæŽ¥æ± ï¼Œå®ƒä½äºŽ <literal>libhibernate.c3p0.* 相关的属"
"性,Hibernate将使用 <literal>C3P0ConnectionProvider æ¥ç¼“å˜ JDBC è¿ž"
"æŽ¥ã€‚å¦‚æžœä½ æ›´åŽŸæ„使用 Proxool,请å‚考å‘行包ä¸çš„ <literal>hibernate."
"properties</literal> 并到 Hibernate 网站获å–更多的信æ¯ã€‚ "
#. Tag: para
#: configuration.xml:216
#, no-c-format
msgid ""
"The following is an example <filename>hibernate.properties file "
"for c3p0:"
msgstr ""
"这是一个使用 C3P0 çš„ <literal>hibernate.properties æ ·ä¾‹æ–‡ä»¶ï¼š "
#. Tag: programlisting
#: configuration.xml:219
#, fuzzy, no-c-format
msgid ""
"hibernate.connection.driver_class = org.postgresql.Driver\n"
"hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
"hibernate.connection.username = myuser\n"
"hibernate.connection.password = secret\n"
"hibernate.c3p0.min_size=5\n"
"hibernate.c3p0.max_size=20\n"
"hibernate.c3p0.timeout=1800\n"
"hibernate.c3p0.max_statements=50\n"
"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect"
msgstr ""
"<![CDATA[hibernate.connection.driver_class = org.postgresql.Driver\n"
"hibernate.connection.url = jdbc:postgresql://localhost/mydatabase\n"
"hibernate.connection.username = myuser\n"
"hibernate.connection.password = secret\n"
"hibernate.c3p0.min_size=5\n"
"hibernate.c3p0.max_size=20\n"
"hibernate.c3p0.timeout=1800\n"
"hibernate.c3p0.max_statements=50\n"
"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
#. Tag: para
#: configuration.xml:221
#, no-c-format
msgid ""
"For use inside an application server, you should almost always configure "
"Hibernate to obtain connections from an application server "
"<interfacename>javax.sql.Datasource registered in JNDI. You "
"will need to set at least one of the following properties:"
msgstr ""
"为了能在应用程åºæœåŠ¡å™¨ï¼ˆapplication server)ä¸ä½¿ç”¨ Hibernate,应当总是将 "
"Hibernate é…ç½®æˆä»Žæ³¨å†Œåœ¨ JNDI ä¸çš„ <literal>Datasource 处获得连接,"
"ä½ è‡³å°‘éœ€è¦è®¾ç½®ä¸‹åˆ—属性ä¸çš„一个: "
#. Tag: title
#: configuration.xml:227
#, no-c-format
msgid "Hibernate Datasource Properties"
msgstr "Hibernate æ•°æ®æºå±žæ€§"
#. Tag: property
#: configuration.xml:244
#, fuzzy, no-c-format
msgid "hibernate.connection.datasource"
msgstr "<property>hibernate.connection.datasource"
#. Tag: emphasis
#: configuration.xml:246
#, no-c-format
msgid "datasource JNDI name"
msgstr "æ•°æ®æº JNDI åå—"
#. Tag: property
#: configuration.xml:250
#, fuzzy, no-c-format
msgid "hibernate.jndi.url"
msgstr "<property>hibernate.jndi.url"
#. Tag: entry
#: configuration.xml:252
#, no-c-format
msgid "<emphasis>URL of the JNDI provider (optional)"
msgstr "<emphasis>JNDI æ供者的 URL(å¯é€‰ï¼‰"
#. Tag: property
#: configuration.xml:257
#, fuzzy, no-c-format
msgid "hibernate.jndi.class"
msgstr "<property>hibernate.jndi.class"
#. Tag: entry
#: configuration.xml:259
#, no-c-format
msgid ""
"<emphasis>class of the JNDI InitialContextFactoryInitialContextFactory 类(å¯é€‰ï¼‰"
#. Tag: entry
#: configuration.xml:267
#, no-c-format
msgid "<emphasis>database user (optional)"
msgstr "<emphasis>æ•°æ®åº“用户(å¯é€‰ï¼‰"
#. Tag: entry
#: configuration.xml:273
#, no-c-format
msgid "<emphasis>database user password (optional)"
msgstr "<emphasis>æ•°æ®åº“密ç (å¯é€‰ï¼‰"
#. Tag: para
#: configuration.xml:280
#, no-c-format
msgid ""
"Here is an example <filename>hibernate.properties file for an "
"application server provided JNDI datasource:"
msgstr ""
"这是一个使用应用程åºæœåŠ¡å™¨æ供的 JNDI æ•°æ®æºçš„ <literal>hibernate."
"properties</literal> æ ·ä¾‹æ–‡ä»¶ï¼š "
#. Tag: programlisting
#: configuration.xml:283
#, fuzzy, no-c-format
msgid ""
"hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
"hibernate.transaction.factory_class = \\\n"
" org.hibernate.transaction.JTATransactionFactory\n"
"hibernate.transaction.manager_lookup_class = \\\n"
" org.hibernate.transaction.JBossTransactionManagerLookup\n"
"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect"
msgstr ""
"<![CDATA[hibernate.connection.datasource = java:/comp/env/jdbc/test\n"
"hibernate.transaction.factory_class = \\\n"
" org.hibernate.transaction.JTATransactionFactory\n"
"hibernate.transaction.manager_lookup_class = \\\n"
" org.hibernate.transaction.JBossTransactionManagerLookup\n"
"hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]>"
#. Tag: para
#: configuration.xml:285
#, no-c-format
msgid ""
"JDBC connections obtained from a JNDI datasource will automatically "
"participate in the container-managed transactions of the application server."
msgstr ""
"从 JNDI æ•°æ®æºèŽ·å¾—çš„ JDBC 连接将自动å‚与到应用程åºæœåŠ¡å™¨ä¸å®¹å™¨ç®¡ç†çš„事务"
"(container-managed transactions)ä¸åŽ»ã€‚"
#. Tag: para
#: configuration.xml:289
#, no-c-format
msgid ""
"Arbitrary connection properties can be given by prepending "
"\"<literal>hibernate.connection\" to the connection property name. "
"For example, you can specify a <property>charSet connection "
"property using <property>hibernate.connection.charSet."
msgstr ""
"任何连接(connection)属性的属性å都è¦ä»¥ \"<literal>hibernate.connnectionhibernate.connection.charSetcharSet 连接属性。 "
#. Tag: para
#: configuration.xml:294
#, no-c-format
msgid ""
"You can define your own plugin strategy for obtaining JDBC connections by "
"implementing the interface <interfacename>org.hibernate.connection."
"ConnectionProvider</interfacename>, and specifying your custom "
"implementation via the <property>hibernate.connection.provider_class 接"
"å£ï¼Œä½ å¯ä»¥å®šä¹‰å±žäºŽä½ 自己的获得JDBC连接的æ’件ç–略。通过设置<literal>hibernate."
"connection.provider_class</literal>ï¼Œä½ å¯ä»¥é€‰æ‹©ä¸€ä¸ªè‡ªå®šä¹‰çš„实现。 "
#. Tag: title
#: configuration.xml:302
#, no-c-format
msgid "Optional configuration properties"
msgstr "å¯é€‰çš„é…置属性"
#. Tag: para
#: configuration.xml:304
#, no-c-format
msgid ""
"There are a number of other properties that control the behavior of "
"Hibernate at runtime. All are optional and have reasonable default values."
msgstr ""
"有大é‡å±žæ€§èƒ½ç”¨æ¥æŽ§åˆ¶ Hibernate 在è¿è¡ŒæœŸçš„行为。它们都是å¯é€‰çš„,并拥有适当的默"
"认值。 "
#. Tag: para
#: configuration.xml:309
#, no-c-format
msgid ""
"<emphasis>Some of these properties are \"system-level\" only. "
"System-level properties can be set only via <literal>java -Dproperty=valuehibernate.properties. They "
"<emphasis>cannot be set by the other techniques described above."
msgstr ""
"<emphasis>å…¶ä¸ä¸€äº›å±žæ€§æ˜¯\"系统级(system-level)的\"。系统级属性åª"
"能通过<literal>java -Dproperty=value 或 hibernate."
"properties</literal> æ¥è®¾ç½®ï¼Œè€Œä¸èƒ½ç”¨ä¸Šé¢æ述的其他方法"
"æ¥è®¾ç½®ã€‚"
#. Tag: title
#: configuration.xml:318
#, no-c-format
msgid "Hibernate Configuration Properties"
msgstr "Hibernate é…置属性"
#. Tag: property
#: configuration.xml:335
#, fuzzy, no-c-format
msgid "hibernate.dialect"
msgstr "<property>hibernate.dialect"
#. Tag: entry
#: configuration.xml:337
#, no-c-format
msgid ""
"The classname of a Hibernate <classname>org.hibernate.dialect.Dialect full.classname.of."
"Dialect</literal>"
msgstr ""
"<emphasis role=\"strong\">例如:full.classname.of."
"Dialect</literal> "
#. Tag: para
#: configuration.xml:341
#, no-c-format
msgid ""
"In most cases Hibernate will actually be able to choose the correct "
"<classname>org.hibernate.dialect.Dialect implementation based on "
"the <literal>JDBC metadata returned by the JDBC driver."
msgstr ""
"在大多数情况下,Hibernate å¯ä»¥æ ¹æ® JDBC 驱动返回的 <literal>JDBC metadataorg.hibernate.dialect.Dialect 实"
"现。"
#. Tag: property
#: configuration.xml:349
#, fuzzy, no-c-format
msgid "hibernate.show_sql"
msgstr "<property>hibernate.show_sql"
#. Tag: entry
#: configuration.xml:351
#, no-c-format
msgid ""
"Write all SQL statements to console. This is an alternative to setting the "
"log category <literal>org.hibernate.SQL to debugdebug。"
#. Tag: para
#: configuration.xml:353 configuration.xml:361 configuration.xml:426
#: configuration.xml:435 configuration.xml:443 configuration.xml:453
#: configuration.xml:468 configuration.xml:525 configuration.xml:545
#: configuration.xml:555 configuration.xml:598 configuration.xml:797
#: configuration.xml:808 configuration.xml:904
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. true | "
"<literal>false"
msgstr ""
"<emphasis role=\"strong\">例如:true | "
"<literal>false "
#. Tag: property
#: configuration.xml:359
#, fuzzy, no-c-format
msgid "hibernate.format_sql"
msgstr "<property>hibernate.format_sql"
#. Tag: entry
#: configuration.xml:361
#, no-c-format
msgid "Pretty print the SQL in the log and console."
msgstr "在 log å’Œ console ä¸æ‰“å°å‡ºæ›´æ¼‚亮的 SQL。"
#. Tag: property
#: configuration.xml:367
#, fuzzy, no-c-format
msgid "hibernate.default_schema"
msgstr "<property>hibernate.default_schema"
#. Tag: entry
#: configuration.xml:369
#, no-c-format
msgid ""
"Qualify unqualified table names with the given schema/tablespace in "
"generated SQL."
msgstr ""
"在生æˆçš„ SQL ä¸ï¼Œå°†ç»™å®šçš„ schema/tablespace é™„åŠ äºŽéžå…¨é™å®šå的表å上。 "
#. Tag: para
#: configuration.xml:370
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. SCHEMA_NAME"
msgstr ""
"<emphasis role=\"strong\">例如:SCHEMA_NAME "
#. Tag: property
#: configuration.xml:376
#, fuzzy, no-c-format
msgid "hibernate.default_catalog"
msgstr "<property>hibernate.default_catalog"
#. Tag: entry
#: configuration.xml:378
#, no-c-format
msgid ""
"Qualifies unqualified table names with the given catalog in generated SQL."
msgstr "在生æˆçš„ SQL ä¸ï¼Œå°†ç»™å®šçš„ catalog é™„åŠ äºŽéžå…¨é™å®šå的表å上。 "
#. Tag: para
#: configuration.xml:379
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. CATALOG_NAME"
msgstr ""
"<emphasis role=\"strong\">例如:CATALOG_NAME "
#. Tag: property
#: configuration.xml:384
#, fuzzy, no-c-format
msgid "hibernate.session_factory_name"
msgstr "<property>hibernate.session_factory_name"
#. Tag: entry
#: configuration.xml:386
#, no-c-format
msgid ""
"The <interfacename>org.hibernate.SessionFactory will be "
"automatically bound to this name in JNDI after it has been created."
msgstr ""
"<interfacename>org.hibernate.SessionFactory 创建åŽï¼Œå°†è‡ªåŠ¨ä½¿"
"用这个åå—绑定到 JNDI ä¸ã€‚"
#. Tag: para
#: configuration.xml:389 configuration.xml:776
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. jndi/composite/namejndi/composite/name"
#. Tag: entry
#: configuration.xml:396
#, no-c-format
msgid ""
"Sets a maximum \"depth\" for the outer join fetch tree for single-ended "
"associations (one-to-one, many-to-one). A <literal>0 disables "
"default outer join fetching."
msgstr ""
"为å•å‘å…³è”(一对一,多对一)的外连接抓å–(outer join fetchï¼‰æ ‘è®¾ç½®æœ€å¤§æ·±åº¦ã€‚"
"值为 <literal>0 æ„味ç€å°†å…³é—默认的外连接抓å–。 "
#. Tag: para
#: configuration.xml:398
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. recommended values between "
"<literal>0 and 3"
msgstr ""
"<emphasis role=\"strong\">例如: 建议在 0 到 "
"<literal>3 之间å–值 "
#. Tag: property
#: configuration.xml:404
#, fuzzy, no-c-format
msgid "hibernate.default_batch_fetch_size"
msgstr "<property>hibernate.default_batch_fetch_size"
#. Tag: entry
#: configuration.xml:406
#, no-c-format
msgid "Sets a default size for Hibernate batch fetching of associations."
msgstr "为 Hibernate å…³è”的批é‡æŠ“å–设置默认数é‡ã€‚ "
#. Tag: para
#: configuration.xml:407
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. recommended values 48, 16"
msgstr ""
"<emphasis role=\"strong\">例如:建议的å–值为 48,和 16 "
#. Tag: property
#: configuration.xml:413
#, fuzzy, no-c-format
msgid "hibernate.default_entity_mode"
msgstr "<property>hibernate.default_entity_mode"
#. Tag: entry
#: configuration.xml:415
#, no-c-format
msgid ""
"Sets a default mode for entity representation for all sessions opened from "
"this <literal>SessionFactory"
msgstr ""
"为由这个 <literal>SessionFactory 打开的所有 Session 指定默认的实体"
"表现模å¼ã€‚ "
#. Tag: para
#: configuration.xml:416
#, no-c-format
msgid ""
"<literal>dynamic-map, dom4j, pojodynamic-map,"
"<literal>dom4j,pojo"
#. Tag: property
#: configuration.xml:422
#, fuzzy, no-c-format
msgid "hibernate.order_updates"
msgstr "<property>hibernate.order_updates"
#. Tag: entry
#: configuration.xml:424
#, no-c-format
msgid ""
"Forces Hibernate to order SQL updates by the primary key value of the items "
"being updated. This will result in fewer transaction deadlocks in highly "
"concurrent systems."
msgstr ""
"强制 Hibernate 按照被更新数æ®çš„主键,为 SQL 更新排åºã€‚这么åšå°†å‡å°‘在高并å‘ç³»"
"统ä¸äº‹åŠ¡çš„æ»é”。"
#. Tag: property
#: configuration.xml:432
#, fuzzy, no-c-format
msgid "hibernate.generate_statistics"
msgstr "Hibernate 的统计(statistics)机制"
#. Tag: entry
#: configuration.xml:434
#, no-c-format
msgid ""
"If enabled, Hibernate will collect statistics useful for performance tuning."
msgstr "如果开å¯ï¼ŒHibernate 将收集有助于性能调节的统计数æ®ã€‚"
#. Tag: property
#: configuration.xml:440
#, fuzzy, no-c-format
msgid "hibernate.use_identifier_rollback"
msgstr "<property>hibernate.use_identifier_rollback"
#. Tag: entry
#: configuration.xml:442
#, no-c-format
msgid ""
"If enabled, generated identifier properties will be reset to default values "
"when objects are deleted."
msgstr "如果开å¯ï¼Œåœ¨å¯¹è±¡è¢«åˆ 除时生æˆçš„æ ‡è¯†å±žæ€§å°†è¢«é‡è®¾ä¸ºé»˜è®¤å€¼ã€‚"
#. Tag: property
#: configuration.xml:449
#, fuzzy, no-c-format
msgid "hibernate.use_sql_comments"
msgstr "<property>hibernate.use_sql_comments"
#. Tag: entry
#: configuration.xml:451
#, no-c-format
msgid ""
"If turned on, Hibernate will generate comments inside the SQL, for easier "
"debugging, defaults to <literal>false."
msgstr ""
"如果开å¯ï¼ŒHibernate 将在 SQL ä¸ç”Ÿæˆæœ‰åŠ©äºŽè°ƒè¯•çš„注释信æ¯ï¼Œé»˜è®¤å€¼ä¸º "
"<literal>false。"
#. Tag: property
#: configuration.xml:458
#, no-c-format
msgid "hibernate.id.new_generator_mappings"
msgstr ""
#. Tag: entry
#: configuration.xml:460
#, no-c-format
msgid ""
"Setting is relevant when using <classname>@GeneratedValue. It "
"indicates whether or not the new <classname>IdentifierGenerator "
"implementations are used for <classname>javax.persistence.GenerationType."
"AUTO</classname>, javax.persistence.GenerationType.TABLEjavax.persistence.GenerationType.SEQUENCEfalse to keep backward "
"compatibility."
msgstr ""
#. Tag: para
#: configuration.xml:476
#, no-c-format
msgid ""
"We recommend all new projects which make use of to use "
"<classname>@GeneratedValue to also set hibernate.id."
"new_generator_mappings=true</code> as the new generators are more efficient "
"and closer to the JPA 2 specification semantic. However they are not "
"backward compatible with existing databases (if a sequence or a table is "
"used for id generation)."
msgstr ""
#. Tag: title
#: configuration.xml:485
#, no-c-format
msgid "Hibernate JDBC and Connection Properties"
msgstr "Hibernate JDBC 和连接(connection)属性"
#. Tag: property
#: configuration.xml:503
#, fuzzy, no-c-format
msgid "hibernate.jdbc.fetch_size"
msgstr "<property>hibernate.jdbc.fetch_size"
#. Tag: entry
#: configuration.xml:505
#, no-c-format
msgid ""
"A non-zero value determines the JDBC fetch size (calls <literal>Statement."
"setFetchSize()</literal>)."
msgstr ""
"éžé›¶å€¼ï¼ŒæŒ‡å®š JDBC 抓å–æ•°é‡çš„大å°ï¼ˆè°ƒç”¨ <literal>Statement.setFetchSize()"
#. Tag: entry
#: configuration.xml:512
#, no-c-format
msgid "A non-zero value enables use of JDBC2 batch updates by Hibernate."
msgstr "éžé›¶å€¼ï¼Œå…许 Hibernate 使用 JDBC2 的批é‡æ›´æ–°ã€‚"
#. Tag: para
#: configuration.xml:513
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. recommended values between "
"<literal>5 and 30"
msgstr ""
"<emphasis role=\"strong\">ä¾‹å¦‚ï¼šå»ºè®®å– 5 到 "
"<literal>30 之间的值 "
#. Tag: property
#: configuration.xml:519
#, fuzzy, no-c-format
msgid "hibernate.jdbc.batch_versioned_data"
msgstr "<property>hibernate.jdbc.batch_versioned_data"
#. Tag: entry
#: configuration.xml:521
#, fuzzy, no-c-format
msgid ""
"Set this property to <literal>true if your JDBC driver returns "
"correct row counts from <literal>executeBatch(). It is usually "
"safe to turn this option on. Hibernate will then use batched DML for "
"automatically versioned data. Defaults to <literal>false."
msgstr ""
"å¦‚æžœä½ æƒ³è®©ä½ çš„ JDBC 驱动从 <literal>true 返回æ£ç¡®çš„行计数 ,那么将"
"æ¤å±žæ€§è®¾ä¸º <literal>executeBatch()(开å¯è¿™ä¸ªé€‰é¡¹é€šå¸¸æ˜¯å®‰å…¨çš„)。åŒ"
"时,Hibernate 将为自动版本化的数æ®ä½¿ç”¨æ‰¹é‡ DML。默认值为 <literal>false"
#. Tag: entry
#: configuration.xml:533
#, no-c-format
msgid ""
"Select a custom <interfacename>org.hibernate.jdbc.Batcher. "
"Most applications will not need this configuration property."
msgstr ""
"选择一个自定义的 <literal>Batcher。多数应用程åºä¸éœ€è¦è¿™ä¸ªé…置属"
"性。 "
#. Tag: para
#: configuration.xml:535
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. classname.of."
"BatcherFactory</literal>"
msgstr ""
"<emphasis role=\"strong\">例如:classname.of.Batcher"
#. Tag: entry
#: configuration.xml:543
#, no-c-format
msgid ""
"Enables use of JDBC2 scrollable resultsets by Hibernate. This property is "
"only necessary when using user-supplied JDBC connections. Hibernate uses "
"connection metadata otherwise."
msgstr ""
"å…许 Hibernate 使用 JDBC2 çš„å¯æ»šåŠ¨ç»“果集。åªæœ‰åœ¨ä½¿ç”¨ç”¨æˆ·æ供的 JDBC 连接时,"
"这个选项æ‰æ˜¯å¿…è¦çš„,å¦åˆ™ Hibernate 会使用连接的元数æ®ã€‚ "
#. Tag: property
#: configuration.xml:551
#, fuzzy, no-c-format
msgid "hibernate.jdbc.use_streams_for_binary"
msgstr "<property>hibernate.jdbc.use_streams_for_binary"
#. Tag: entry
#: configuration.xml:553
#, no-c-format
msgid ""
"Use streams when writing/reading <literal>binary or "
"<literal>serializable types to/from JDBC. *system-level "
"property*</emphasis>"
msgstr ""
"在 JDBC 读写 <literal>binary 或 serializable 的"
"类型时使用æµï¼ˆstream)(系统级属性)。 "
#. Tag: property
#: configuration.xml:561
#, fuzzy, no-c-format
msgid "hibernate.jdbc.use_get_generated_keys"
msgstr "<property>hibernate.jdbc.use_get_generated_keys"
#. Tag: entry
#: configuration.xml:563
#, no-c-format
msgid ""
"Enables use of JDBC3 <literal>PreparedStatement.getGeneratedKeys() "
"to retrieve natively generated keys after insert. Requires JDBC3+ driver and "
"JRE1.4+, set to false if your driver has problems with the Hibernate "
"identifier generators. By default, it tries to determine the driver "
"capabilities using connection metadata."
msgstr ""
"在数æ®æ’入数æ®åº“之åŽï¼Œå…许使用 JDBC3 <literal>PreparedStatement."
"getGeneratedKeys()</literal> æ¥èŽ·å–æ•°æ®åº“生æˆçš„ keyï¼ˆé”®ï¼‰ã€‚éœ€è¦ JDBC3+ 驱动"
"å’Œ JRE1.4+ï¼Œå¦‚æžœä½ çš„æ•°æ®åº“驱动在使用 Hibernate çš„æ ‡è¯†ç”Ÿæˆå™¨æ—¶é‡åˆ°é—®é¢˜ï¼Œè¯·å°†æ¤"
"值设为 false。默认情况下将使用连接的元数æ®æ¥åˆ¤å®šé©±åŠ¨çš„能力。 "
#. Tag: para
#: configuration.xml:569 configuration.xml:678 configuration.xml:687
#: configuration.xml:696 configuration.xml:723
#, no-c-format
msgid "<emphasis role=\"strong\">e.g. true|false"
msgstr ""
"<emphasis role=\"strong\">例如:true | false "
#. Tag: property
#: configuration.xml:574
#, fuzzy, no-c-format
msgid "hibernate.connection.provider_class"
msgstr "<property>hibernate.connection.provider_class"
#. Tag: entry
#: configuration.xml:576
#, no-c-format
msgid ""
"The classname of a custom <interfacename>org.hibernate.connection."
"ConnectionProvider</interfacename> which provides JDBC connections to "
"Hibernate."
msgstr ""
"自定义 <literal>ConnectionProvider çš„ç±»å,æ¤ç±»ç”¨æ¥å‘ Hibernate æ"
"供 JDBC 连接。 "
#. Tag: para
#: configuration.xml:578
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. classname.of."
"ConnectionProvider</literal>"
msgstr ""
"<emphasis role=\"strong\">例如:classname.of."
"ConnectionProvider</literal> "
#. Tag: property
#: configuration.xml:584
#, fuzzy, no-c-format
msgid "hibernate.connection.isolation"
msgstr "<property>hibernate.connection.isolation"
#. Tag: entry
#: configuration.xml:586
#, no-c-format
msgid ""
"Sets the JDBC transaction isolation level. Check <interfacename>java.sql."
"Connection</interfacename> for meaningful values, but note that most "
"databases do not support all isolation levels and some define additional, "
"non-standard isolations."
msgstr ""
"设置 JDBC 事务隔离级别。查看 <literal>java.sql.Connection æ¥äº†è§£å„"
"个值的具体æ„义,但请注æ„多数数æ®åº“都ä¸æ”¯æŒæ‰€æœ‰çš„隔离级别。 "
#. Tag: para
#: configuration.xml:589
#, no-c-format
msgid "<emphasis role=\"strong\">e.g. 1, 2, 4, 8"
msgstr ""
"<emphasis role=\"strong\">例如:1, 2, 4, 8 "
#. Tag: property
#: configuration.xml:595
#, fuzzy, no-c-format
msgid "hibernate.connection.autocommit"
msgstr "<property>hibernate.connection.autocommit"
#. Tag: entry
#: configuration.xml:597
#, no-c-format
msgid "Enables autocommit for JDBC pooled connections (it is not recommended)."
msgstr "å…许被缓å˜çš„ JDBC 连接开å¯è‡ªåŠ¨æ交(autocommit)(ä¸æŽ¨è)。"
#. Tag: property
#: configuration.xml:603
#, fuzzy, no-c-format
msgid "hibernate.connection.release_mode"
msgstr "<property>hibernate.connection.release_mode"
#. Tag: entry
#: configuration.xml:605
#, no-c-format
msgid ""
"Specifies when Hibernate should release JDBC connections. By default, a JDBC "
"connection is held until the session is explicitly closed or disconnected. "
"For an application server JTA datasource, use <literal>after_statement. "
"<literal>auto will choose after_statement for "
"the JTA and CMT transaction strategies and <literal>after_transactionï¼Œè¿™æ ·åœ¨æ¯æ¬¡ JDBC 调用åŽï¼Œéƒ½ä¼šä¸»åŠ¨çš„释放连"
"æŽ¥ã€‚å¯¹äºŽéž JTA 的连接,使用 <literal>after_transaction 在æ¯ä¸ªäº‹åŠ¡ç»“"
"æŸæ—¶é‡Šæ”¾è¿žæŽ¥æ˜¯åˆç†çš„。<literal>auto 将为 JTA å’Œ CMT 事务ç–略选择 "
"<literal>after_statement,为JDBC事务ç–略选择 "
"<literal>after_transaction。"
#. Tag: para
#: configuration.xml:615
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. auto (default) "
"| <literal>on_close | after_transaction | "
"<literal>after_statement"
msgstr ""
"<emphasis role=\"strong\">例如:auto (默认) | "
"<literal>on_close | after_transaction | "
"<literal>after_statement "
#. Tag: para
#: configuration.xml:618
#, fuzzy, no-c-format
msgid ""
"This setting only affects <literal>Sessions returned from "
"<literal>SessionFactory.openSession. For SessionSessionFactory.getCurrentSessionCurrentSessionContext implementation "
"configured for use controls the connection release mode for those "
"<literal>Sessions. See"
msgstr ""
"注æ„,这些设置仅对通过 <literal>SessionFactory.openSession 得到的 "
"<literal>Session 起作用。对于通过 SessionFactory."
"getCurrentSession</literal> 得到的 Session,所é…置的 "
"<literal>CurrentSessionContext 实现控制这些 Session<propertyName><propertyName> to "
"<literal>DriverManager.getConnection()."
msgstr ""
"把 JDBC 属性 <emphasis><propertyName> ä¼ é€’ç»™ "
"<literal>DriverManager.getConnection()。"
#. Tag: entry
#: configuration.xml:638
#, no-c-format
msgid ""
"<property>hibernate.jndi.<propertyName>"
msgstr ""
"<property>hibernate.jndi.<propertyName>"
#. Tag: entry
#: configuration.xml:640
#, no-c-format
msgid ""
"Pass the property <emphasis><propertyName> to the JNDI "
"<literal>InitialContextFactory."
msgstr ""
"把 <emphasis><propertyName> å±žæ€§ä¼ é€’ç»™ JNDI "
"<literal>InitialContextFactory。"
#. Tag: title
#: configuration.xml:648
#, no-c-format
msgid "Hibernate Cache Properties"
msgstr "Hibernate 缓å˜å±žæ€§"
#. Tag: literal
#: configuration.xml:665
#, fuzzy, no-c-format
msgid "hibernate.cache.provider_class"
msgstr "<literal>hibernate.cache.provider_class"
#. Tag: entry
#: configuration.xml:667
#, no-c-format
msgid "The classname of a custom <literal>CacheProvider."
msgstr "自定义的 <literal>CacheProvider çš„ç±»å。"
#. Tag: para
#: configuration.xml:668
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. classname.of."
"CacheProvider</literal>"
msgstr ""
"<emphasis role=\"strong\">例如:classname.of."
"CacheProvider</literal> "
#. Tag: literal
#: configuration.xml:673
#, fuzzy, no-c-format
msgid "hibernate.cache.use_minimal_puts"
msgstr "<literal>hibernate.cache.use_minimal_puts"
#. Tag: entry
#: configuration.xml:675
#, no-c-format
msgid ""
"Optimizes second-level cache operation to minimize writes, at the cost of "
"more frequent reads. This setting is most useful for clustered caches and, "
"in Hibernate3, is enabled by default for clustered cache implementations."
msgstr ""
"以频ç¹çš„读æ“作为代价,优化二级缓å˜æ¥æœ€å°åŒ–写æ“作。在 Hibernate3 ä¸ï¼Œè¿™ä¸ªè®¾ç½®"
"对的集群缓å˜éžå¸¸æœ‰ç”¨ï¼Œå¯¹é›†ç¾¤ç¼“å˜çš„实现而言,默认是开å¯çš„。 "
#. Tag: literal
#: configuration.xml:684
#, fuzzy, no-c-format
msgid "hibernate.cache.use_query_cache"
msgstr "<literal>hibernate.cache.use_query_cache"
#. Tag: entry
#: configuration.xml:686
#, no-c-format
msgid ""
"Enables the query cache. Individual queries still have to be set cachable."
msgstr "å…许查询缓å˜ï¼Œä¸ªåˆ«æŸ¥è¯¢ä»ç„¶éœ€è¦è¢«è®¾ç½®ä¸ºå¯ç¼“å˜çš„。 "
#. Tag: literal
#: configuration.xml:692
#, fuzzy, no-c-format
msgid "hibernate.cache.use_second_level_cache"
msgstr "<literal>hibernate.cache.use_second_level_cache"
#. Tag: entry
#: configuration.xml:694
#, no-c-format
msgid ""
"Can be used to completely disable the second level cache, which is enabled "
"by default for classes which specify a <literal><cache> "
"mapping."
msgstr ""
"能用æ¥å®Œå…¨ç¦æ¢ä½¿ç”¨äºŒçº§ç¼“å˜ã€‚å¯¹é‚£äº›åœ¨ç±»çš„æ˜ å°„å®šä¹‰ä¸æŒ‡å®š <literal><cache>"
"</literal> 的类,会默认开å¯äºŒçº§ç¼“å˜ã€‚ "
#. Tag: literal
#: configuration.xml:702
#, fuzzy, no-c-format
msgid "hibernate.cache.query_cache_factory"
msgstr "<literal>hibernate.cache.query_cache_factory"
#. Tag: entry
#: configuration.xml:704
#, no-c-format
msgid ""
"The classname of a custom <literal>QueryCache interface, defaults "
"to the built-in <literal>StandardQueryCache."
msgstr ""
"自定义实现 <literal>QueryCache 接å£çš„ç±»å,默认为内建的 "
"<literal>StandardQueryCache。"
#. Tag: para
#: configuration.xml:706
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. classname.of.QueryCacheclassname.of.QueryCache"
#. Tag: entry
#: configuration.xml:714
#, no-c-format
msgid "A prefix to use for second-level cache region names."
msgstr "二级缓å˜åŒºåŸŸåçš„å‰ç¼€ã€‚"
#. Tag: para
#: configuration.xml:714
#, no-c-format
msgid "<emphasis role=\"strong\">e.g. prefix"
msgstr "<emphasis role=\"strong\">例如:prefix "
#. Tag: literal
#: configuration.xml:720
#, fuzzy, no-c-format
msgid "hibernate.cache.use_structured_entries"
msgstr "<literal>hibernate.cache.use_structured_entries"
#. Tag: entry
#: configuration.xml:722
#, no-c-format
msgid ""
"Forces Hibernate to store data in the second-level cache in a more human-"
"friendly format."
msgstr "强制 Hibernate ä»¥æ›´äººæ€§åŒ–çš„æ ¼å¼å°†æ•°æ®å˜å…¥äºŒçº§ç¼“å˜ã€‚"
#. Tag: literal
#: configuration.xml:729
#, no-c-format
msgid "hibernate.cache.default_cache_concurrency_strategy"
msgstr ""
#. Tag: entry
#: configuration.xml:731
#, no-c-format
msgid ""
"Setting used to give the name of the default <classname>org.hibernate."
"annotations.CacheConcurrencyStrategy</classname> to use when either "
"<classname>@Cacheable or @Cache is used. "
"<code>@Cache(strategy=\"..\") is used to override this default."
msgstr ""
#. Tag: title
#: configuration.xml:744
#, no-c-format
msgid "Hibernate Transaction Properties"
msgstr "Hibernate 事务属性"
#. Tag: literal
#: configuration.xml:761
#, fuzzy, no-c-format
msgid "hibernate.transaction.factory_class"
msgstr "<literal>hibernate.transaction.factory_class"
#. Tag: entry
#: configuration.xml:763
#, no-c-format
msgid ""
"The classname of a <literal>TransactionFactory to use with "
"Hibernate <literal>Transaction API (defaults to "
"<literal>JDBCTransactionFactory)."
msgstr ""
"一个 <literal>TransactionFactory çš„ç±»å,用于 Hibernate "
"<literal>Transaction API(默认为 JDBCTransactionFactory classname.of."
"TransactionFactory</literal>"
msgstr ""
"<emphasis role=\"strong\">例如:classname.of."
"TransactionFactory</literal> "
#. Tag: literal
#: configuration.xml:771
#, fuzzy, no-c-format
msgid "jta.UserTransaction"
msgstr "<literal>jta.UserTransaction"
#. Tag: entry
#: configuration.xml:773
#, no-c-format
msgid ""
"A JNDI name used by <literal>JTATransactionFactory to obtain the "
"JTA <literal>UserTransaction from the application server."
msgstr ""
"一个 JNDI åå—,被 <literal>JTATransactionFactory 用æ¥ä»Žåº”用æœåŠ¡å™¨"
"èŽ·å– JTA <literal>UserTransaction。"
#. Tag: literal
#: configuration.xml:781
#, fuzzy, no-c-format
msgid "hibernate.transaction.manager_lookup_class"
msgstr "<literal>hibernate.transaction.manager_lookup_class"
#. Tag: entry
#: configuration.xml:783
#, no-c-format
msgid ""
"The classname of a <literal>TransactionManagerLookup. It is "
"required when JVM-level caching is enabled or when using hilo generator in a "
"JTA environment."
msgstr ""
"一个 <literal>TransactionManagerLookup çš„ç±»å — 当使用 JVM 级缓å˜ï¼Œ"
"或在 JTA 环境ä¸ä½¿ç”¨ hilo 生æˆå™¨çš„时候需è¦è¯¥ç±»ã€‚ "
#. Tag: para
#: configuration.xml:786
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. classname.of."
"TransactionManagerLookup</literal>"
msgstr ""
"<emphasis role=\"strong\">例如:classname.of."
"TransactionManagerLookup</literal> "
#. Tag: literal
#: configuration.xml:792
#, fuzzy, no-c-format
msgid "hibernate.transaction.flush_before_completion"
msgstr "<literal>hibernate.transaction.flush_before_completion"
#. Tag: entry
#: configuration.xml:794
#, fuzzy, no-c-format
msgid ""
"If enabled, the session will be automatically flushed during the before "
"completion phase of the transaction. Built-in and automatic session context "
"management is preferred, see <xref linkend=\"architecture-current-session\"/"
">."
msgstr ""
"如果开å¯ï¼Œsession 在事务完æˆåŽå°†è¢«è‡ªåŠ¨æ¸…洗(flush)。现在更好的方法是使用自"
"动 session 上下文管ç†ã€‚请å‚è§ <xref linkend=\"architecture-current-session\"/"
">。 "
#. Tag: literal
#: configuration.xml:803
#, fuzzy, no-c-format
msgid "hibernate.transaction.auto_close_session"
msgstr "<literal>hibernate.transaction.auto_close_session"
#. Tag: entry
#: configuration.xml:805
#, fuzzy, no-c-format
msgid ""
"If enabled, the session will be automatically closed during the after "
"completion phase of the transaction. Built-in and automatic session context "
"management is preferred, see <xref linkend=\"architecture-current-session\"/"
">."
msgstr ""
"如果开å¯ï¼Œsession 在事务完æˆåŽå°†è¢«è‡ªåŠ¨å…³é—。 现在更好的方法是使用自动 "
"session 上下文管ç†ã€‚请å‚è§ <xref linkend=\"architecture-current-session\"/"
">。 "
#. Tag: title
#: configuration.xml:817
#, no-c-format
msgid "Miscellaneous Properties"
msgstr "其他属性"
#. Tag: literal
#: configuration.xml:834
#, fuzzy, no-c-format
msgid "hibernate.current_session_context_class"
msgstr "<literal>hibernate.current_session_context_class"
#. Tag: entry
#: configuration.xml:836
#, fuzzy, no-c-format
msgid ""
"Supply a custom strategy for the scoping of the \"current\" "
"<literal>Session. See 指定一个(自定义的)ç–略。关于内置ç–ç•¥"
"的详情,请å‚è§ <xref linkend=\"architecture-current-session\"/>。 "
#. Tag: para
#: configuration.xml:839
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. jta | "
"<literal>thread | managed | custom."
"Class</literal>"
msgstr ""
"<emphasis role=\"strong\">例如:jta | "
"<literal>thread | managed | custom."
"Class</literal> "
#. Tag: literal
#: configuration.xml:846
#, fuzzy, no-c-format
msgid "hibernate.query.factory_class"
msgstr "<literal>hibernate.query.factory_class"
#. Tag: entry
#: configuration.xml:848
#, no-c-format
msgid "Chooses the HQL parser implementation."
msgstr "选择 HQL 解æžå™¨çš„实现。"
#. Tag: para
#: configuration.xml:848
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. org.hibernate.hql.ast."
"ASTQueryTranslatorFactory</literal> or org.hibernate.hql.classic."
"ClassicQueryTranslatorFactory</literal>"
msgstr ""
"<emphasis role=\"strong\">例如:org.hibernate.hql.ast."
"ASTQueryTranslatorFactory</literal> 或 org.hibernate.hql.classic."
"ClassicQueryTranslatorFactory</literal> "
#. Tag: literal
#: configuration.xml:857
#, fuzzy, no-c-format
msgid "hibernate.query.substitutions"
msgstr "hibernate.query.substitutions true=1,false=0"
#. Tag: entry
#: configuration.xml:859
#, no-c-format
msgid ""
"Is used to map from tokens in Hibernate queries to SQL tokens (tokens might "
"be function or literal names, for example)."
msgstr ""
"å°† Hibernate 查询ä¸çš„符å·æ˜ 射到 SQL 查询ä¸çš„符å·ï¼ˆç¬¦å·å¯èƒ½æ˜¯å‡½æ•°å或常é‡å"
"å—)。 "
#. Tag: para
#: configuration.xml:861
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. hqlLiteral=SQL_LITERAL, "
"hqlFunction=SQLFUNC</literal>"
msgstr ""
"<emphasis role=\"strong\">例如:hqlLiteral=SQL_LITERAL, "
"hqlFunction=SQLFUNC</literal> "
#. Tag: literal
#: configuration.xml:867
#, fuzzy, no-c-format
msgid "hibernate.hbm2ddl.auto"
msgstr "<literal>hibernate.hbm2ddl.auto"
#. Tag: entry
#: configuration.xml:869
#, no-c-format
msgid ""
"Automatically validates or exports schema DDL to the database when the "
"<literal>SessionFactory is created. With create-drop is closed explicitly."
msgstr ""
"在 <literal>SessionFactory 创建时,自动检查数æ®åº“结构,或者将数æ®"
"库 schema çš„ DDL 导出到数æ®åº“。使用 <literal>create-drop 时,在显å¼"
"å…³é— <literal>SessionFactory æ—¶ï¼Œå°†åˆ é™¤æŽ‰æ•°æ®åº“ schema。 "
#. Tag: para
#: configuration.xml:873
#, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. validate | "
"<literal>update | create | create-"
"drop</literal>"
msgstr ""
"<emphasis role=\"strong\">例如:validate | "
"<literal>update | create | create-"
"drop</literal> "
#. Tag: literal
#: configuration.xml:880
#, fuzzy, no-c-format
msgid "hibernate.hbm2ddl.import_file"
msgstr "<literal>hibernate.hbm2ddl.auto"
#. Tag: para
#: configuration.xml:882
#, no-c-format
msgid ""
"Comma-separated names of the optional files containing SQL DML statements "
"executed during the <classname>SessionFactory creation. This is "
"useful for testing or demoing: by adding INSERT statements for example you "
"can populate your database with a minimal set of data when it is deployed."
msgstr ""
#. Tag: para
#: configuration.xml:887
#, no-c-format
msgid ""
"File order matters, the statements of a give file are executed before the "
"statements of the following files. These statements are only executed if the "
"schema is created ie if <literal>hibernate.hbm2ddl.auto is set to "
"<literal>create or create-drop."
msgstr ""
#. Tag: para
#: configuration.xml:892
#, fuzzy, no-c-format
msgid ""
"<emphasis role=\"strong\">e.g. /humans.sql,/dogs.sqltrue | false "
#. Tag: literal
#: configuration.xml:898
#, fuzzy, no-c-format
msgid "hibernate.cglib.use_reflection_optimizer"
msgstr "<literal>hibernate.cglib.use_reflection_optimizer"
#. Tag: entry
#: configuration.xml:900
#, no-c-format
msgid ""
"Enables the use of CGLIB instead of runtime reflection (System-level "
"property). Reflection can sometimes be useful when troubleshooting. "
"Hibernate always requires CGLIB even if you turn off the optimizer. You "
"cannot set this property in <literal>hibernate.cfg.xml."
msgstr ""
"å¼€å¯ CGLIB æ¥æ›¿ä»£è¿è¡Œæ—¶å射机制(系统级属性)。å射机制有时在除错时比较有用。"
"注æ„å³ä½¿å…³é—这个优化,Hibernate è¿˜æ˜¯éœ€è¦ CGLIBã€‚ä½ ä¸èƒ½åœ¨ <literal>hibernate."
"cfg.xml</literal> ä¸è®¾ç½®æ¤å±žæ€§ã€‚ "
#. Tag: title
#: configuration.xml:913
#, no-c-format
msgid "SQL Dialects"
msgstr "SQL 方言"
#. Tag: para
#: configuration.xml:915
#, no-c-format
msgid ""
"Always set the <literal>hibernate.dialect property to the correct "
"<literal>org.hibernate.dialect.Dialect subclass for your database. "
"If you specify a dialect, Hibernate will use sensible defaults for some of "
"the other properties listed above. This means that you will not have to "
"specify them manually."
msgstr ""
"ä½ åº”å½“æ€»æ˜¯ä¸ºä½ çš„æ•°æ®åº“å°† <literal>hibernate.dialect 属性设置æˆæ£ç¡®"
"çš„ <literal>org.hibernate.dialect.Dialect åç±»ã€‚å¦‚æžœä½ æŒ‡å®šä¸€ç§æ–¹"
"言,Hibernate 将为上é¢åˆ—出的一些属性使用åˆç†çš„é»˜è®¤å€¼ï¼Œè¿™æ ·ä½ å°±ä¸ç”¨æ‰‹å·¥æŒ‡å®šå®ƒ"
"们。"
#. Tag: title
#: configuration.xml:922
#, no-c-format
msgid "Hibernate SQL Dialects (<literal>hibernate.dialect)"
msgstr "Hibernate SQL 方言(<literal>hibernate.dialect)"
#. Tag: entry
#: configuration.xml:933
#, no-c-format
msgid "RDBMS"
msgstr "RDBMS"
#. Tag: entry
#: configuration.xml:935
#, no-c-format
msgid "Dialect"
msgstr "Dialect"
#. Tag: entry
#: configuration.xml:941
#, no-c-format
msgid "<entry>DB2"
msgstr "<entry>DB2"
#. Tag: literal
#: configuration.xml:943
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.DB2Dialect"
msgstr "<literal>org.hibernate.dialect.DB2Dialect"
#. Tag: entry
#: configuration.xml:947
#, no-c-format
msgid "DB2 AS/400"
msgstr "DB2 AS/400"
#. Tag: literal
#: configuration.xml:949
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.DB2400Dialect"
msgstr "<literal>org.hibernate.dialect.DB2400Dialect"
#. Tag: entry
#: configuration.xml:953
#, no-c-format
msgid "DB2 OS390"
msgstr "DB2 OS390"
#. Tag: literal
#: configuration.xml:955
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.DB2390Dialect"
msgstr "<literal>org.hibernate.dialect.DB2390Dialect"
#. Tag: entry
#: configuration.xml:959
#, no-c-format
msgid "PostgreSQL"
msgstr "PostgreSQL"
#. Tag: literal
#: configuration.xml:961
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.PostgreSQLDialect"
msgstr "<literal>org.hibernate.dialect.PostgreSQLDialect"
#. Tag: entry
#: configuration.xml:965
#, no-c-format
msgid "MySQL"
msgstr "MySQL"
#. Tag: literal
#: configuration.xml:967
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.MySQLDialect"
msgstr "<literal>org.hibernate.dialect.MySQLDialect"
#. Tag: entry
#: configuration.xml:971
#, no-c-format
msgid "MySQL with InnoDB"
msgstr "MySQL with InnoDB"
#. Tag: literal
#: configuration.xml:973
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.MySQLInnoDBDialect"
msgstr "<literal>org.hibernate.dialect.MySQLInnoDBDialect"
#. Tag: entry
#: configuration.xml:977
#, no-c-format
msgid "MySQL with MyISAM"
msgstr "MySQL with MyISAM"
#. Tag: literal
#: configuration.xml:979
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.MySQLMyISAMDialect"
msgstr "<literal>org.hibernate.dialect.MySQLMyISAMDialect"
#. Tag: entry
#: configuration.xml:983
#, no-c-format
msgid "Oracle (any version)"
msgstr "Oracle(any version)"
#. Tag: literal
#: configuration.xml:985
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.OracleDialect"
msgstr "<literal>org.hibernate.dialect.OracleDialect"
#. Tag: entry
#: configuration.xml:989
#, no-c-format
msgid "Oracle 9i"
msgstr "Oracle 9i"
#. Tag: literal
#: configuration.xml:991
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.Oracle9iDialect"
msgstr "<literal>org.hibernate.dialect.Oracle9iDialect"
#. Tag: entry
#: configuration.xml:995
#, no-c-format
msgid "Oracle 10g"
msgstr "Oracle 10g"
#. Tag: literal
#: configuration.xml:997
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.Oracle10gDialect"
msgstr "<literal>org.hibernate.dialect.Oracle10gDialect"
#. Tag: entry
#: configuration.xml:1001
#, no-c-format
msgid "Sybase"
msgstr "Sybase"
#. Tag: literal
#: configuration.xml:1003
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.SybaseDialect"
msgstr "<literal>org.hibernate.dialect.SybaseDialect"
#. Tag: entry
#: configuration.xml:1007
#, no-c-format
msgid "Sybase Anywhere"
msgstr "Sybase Anywhere"
#. Tag: literal
#: configuration.xml:1009
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.SybaseAnywhereDialect"
msgstr "<literal>org.hibernate.dialect.SybaseAnywhereDialect"
#. Tag: entry
#: configuration.xml:1013
#, no-c-format
msgid "Microsoft SQL Server"
msgstr "Microsoft SQL Server"
#. Tag: literal
#: configuration.xml:1015
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.SQLServerDialect"
msgstr "<literal>org.hibernate.dialect.SQLServerDialect"
#. Tag: entry
#: configuration.xml:1019
#, no-c-format
msgid "SAP DB"
msgstr "SAP DB"
#. Tag: literal
#: configuration.xml:1021
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.SAPDBDialect"
msgstr "<literal>org.hibernate.dialect.SAPDBDialect"
#. Tag: entry
#: configuration.xml:1025
#, no-c-format
msgid "Informix"
msgstr "Informix"
#. Tag: literal
#: configuration.xml:1027
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.InformixDialect"
msgstr "<literal>org.hibernate.dialect.InformixDialect"
#. Tag: entry
#: configuration.xml:1031
#, no-c-format
msgid "HypersonicSQL"
msgstr "HypersonicSQL"
#. Tag: literal
#: configuration.xml:1033
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.HSQLDialect"
msgstr "<literal>org.hibernate.dialect.HSQLDialect"
#. Tag: entry
#: configuration.xml:1037
#, no-c-format
msgid "Ingres"
msgstr "Ingres"
#. Tag: literal
#: configuration.xml:1039
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.IngresDialect"
msgstr "<literal>org.hibernate.dialect.IngresDialect"
#. Tag: entry
#: configuration.xml:1043
#, no-c-format
msgid "Progress"
msgstr "Progress"
#. Tag: literal
#: configuration.xml:1045
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.ProgressDialect"
msgstr "<literal>org.hibernate.dialect.ProgressDialect"
#. Tag: entry
#: configuration.xml:1049
#, no-c-format
msgid "Mckoi SQL"
msgstr "Mckoi SQL"
#. Tag: literal
#: configuration.xml:1051
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.MckoiDialect"
msgstr "<literal>org.hibernate.dialect.MckoiDialect"
#. Tag: entry
#: configuration.xml:1055
#, no-c-format
msgid "Interbase"
msgstr "Interbase"
#. Tag: literal
#: configuration.xml:1057
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.InterbaseDialect"
msgstr "<literal>org.hibernate.dialect.InterbaseDialect"
#. Tag: entry
#: configuration.xml:1061
#, no-c-format
msgid "Pointbase"
msgstr "Pointbase"
#. Tag: literal
#: configuration.xml:1063
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.PointbaseDialect"
msgstr "<literal>org.hibernate.dialect.PointbaseDialect"
#. Tag: entry
#: configuration.xml:1067
#, no-c-format
msgid "FrontBase"
msgstr "FrontBase"
#. Tag: literal
#: configuration.xml:1069
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.FrontbaseDialect"
msgstr "<literal>org.hibernate.dialect.FrontbaseDialect"
#. Tag: entry
#: configuration.xml:1073
#, no-c-format
msgid "Firebird"
msgstr "Firebird"
#. Tag: literal
#: configuration.xml:1075
#, fuzzy, no-c-format
msgid "org.hibernate.dialect.FirebirdDialect"
msgstr "<literal>org.hibernate.dialect.FirebirdDialect"
#. Tag: title
#: configuration.xml:1083
#, no-c-format
msgid "Outer Join Fetching"
msgstr "外连接抓å–(Outer Join Fetching)"
#. Tag: para
#: configuration.xml:1085
#, no-c-format
msgid ""
"If your database supports ANSI, Oracle or Sybase style outer joins, "
"<emphasis>outer join fetching will often increase performance by "
"limiting the number of round trips to and from the database. This is, "
"however, at the cost of possibly more work performed by the database itself. "
"Outer join fetching allows a whole graph of objects connected by many-to-"
"one, one-to-many, many-to-many and one-to-one associations to be retrieved "
"in a single SQL <literal>SELECT."
msgstr ""
"å¦‚æžœä½ çš„æ•°æ®åº“æ”¯æŒ ANSIã€Oracle 或 Sybase é£Žæ ¼çš„å¤–è¿žæŽ¥ï¼Œ<emphasis>外连接抓å–"
"</emphasis>通常能通过é™åˆ¶å¾€è¿”æ•°æ®åº“次数(更多的工作交由数æ®åº“自己æ¥å®Œæˆï¼‰æ¥æ"
"高效率。外连接抓å–å…许在å•ä¸ª <literal>SELECT SQL è¯å¥ä¸ï¼Œ 通过 "
"many-to-oneã€one-to-manyã€many-to-many å’Œ one-to-one å…³è”获å–连接对象的整个对"
"象图。"
#. Tag: para
#: configuration.xml:1094
#, no-c-format
msgid ""
"Outer join fetching can be disabled <emphasis>globally by setting "
"the property <literal>hibernate.max_fetch_depth to 01 or higher enables outer join "
"fetching for one-to-one and many-to-one associations that have been mapped "
"with <literal>fetch=\"join\"."
msgstr ""
"将 <literal>hibernate.max_fetch_depth 设为 0 能"
"在<emphasis>全局 范围内ç¦æ¢å¤–连接抓å–。设为 1 "
"或更高值能å¯ç”¨ one-to-one å’Œ many-to-oneouter å…³è”的外连接抓å–,它们通过 "
"<literal>fetch=\"join\" æ¥æ˜ 射。 "
#. Tag: para
#: configuration.xml:1100
#, fuzzy, no-c-format
msgid "See <xref linkend=\"performance-fetching\"/> for more information."
msgstr "å‚è§ <xref linkend=\"performance-fetching\"/> 获得更多信æ¯ã€‚ "
#. Tag: title
#: configuration.xml:1105
#, no-c-format
msgid "Binary Streams"
msgstr "二进制æµï¼ˆBinary Streams)"
#. Tag: para
#: configuration.xml:1107
#, no-c-format
msgid ""
"Oracle limits the size of <literal>byte arrays that can be passed "
"to and/or from its JDBC driver. If you wish to use large instances of "
"<literal>binary or serializable type, you "
"should enable <literal>hibernate.jdbc.use_streams_for_binary. "
"<emphasis>This is a system-level setting only."
msgstr ""
"Oracle é™åˆ¶é‚£äº›é€šè¿‡ JDBC é©±åŠ¨ä¼ è¾“çš„<literal>å—èŠ‚æ•°ç»„çš„æ•°ç›®ã€‚å¦‚æžœä½ "
"希望使用<literal>二进值(binary)或 å¯åºåˆ—化的"
"(serializable)</literal>ç±»åž‹çš„å¤§å¯¹è±¡ï¼Œä½ åº”è¯¥å¼€å¯ hibernate.jdbc."
"use_streams_for_binary</literal> 属性。这是系统级属性。 "
#. Tag: title
#: configuration.xml:1116
#, no-c-format
msgid "Second-level and query cache"
msgstr "二级缓å˜ä¸ŽæŸ¥è¯¢ç¼“å˜"
#. Tag: para
#: configuration.xml:1118
#, fuzzy, no-c-format
msgid ""
"The properties prefixed by <literal>hibernate.cache allow you to "
"use a process or cluster scoped second-level cache system with Hibernate. "
"See the <xref linkend=\"performance-cache\"/> for more information."
msgstr ""
"以 <literal>hibernate.cache 为å‰ç¼€çš„属性å…è®¸ä½ åœ¨ Hibernate ä¸ï¼Œä½¿ç”¨"
"进程或群集范围内的二级缓å˜ç³»ç»Ÿã€‚å‚è§ <xref linkend=\"performance-cache\"/> 获"
"å–更多的详情。"
#. Tag: title
#: configuration.xml:1125
#, no-c-format
msgid "Query Language Substitution"
msgstr "查询è¯è¨€ä¸çš„替æ¢"
#. Tag: para
#: configuration.xml:1127
#, no-c-format
msgid ""
"You can define new Hibernate query tokens using <literal>hibernate.query."
"substitutions</literal>. For example:"
msgstr ""
"ä½ å¯ä»¥ä½¿ç”¨ <literal>hibernate.query.substitutions 在 Hibernate ä¸å®š"
"义新的查询符å·ã€‚例如: "
#. Tag: programlisting
#: configuration.xml:1130
#, no-c-format
msgid "hibernate.query.substitutions true=1, false=0"
msgstr "hibernate.query.substitutions true=1,false=0"
#. Tag: para
#: configuration.xml:1132
#, no-c-format
msgid ""
"This would cause the tokens <literal>true and false å’Œ false 在生æˆçš„ SQL "
"ä¸è¢«ç¿»è¯‘æˆæ•´æ•°å¸¸é‡ã€‚"
#. Tag: programlisting
#: configuration.xml:1136
#, no-c-format
msgid "hibernate.query.substitutions toLowercase=LOWER"
msgstr "hibernate.query.substitutions toLowercase=LOWER"
#. Tag: para
#: configuration.xml:1138
#, no-c-format
msgid ""
"This would allow you to rename the SQL <literal>LOWER function."
msgstr "å°†å…è®¸ä½ é‡å‘½å SQL ä¸çš„ <literal>LOWER 函数。"
#. Tag: title
#: configuration.xml:1143
#, no-c-format
msgid "Hibernate statistics"
msgstr "Hibernate 的统计(statistics)机制"
#. Tag: para
#: configuration.xml:1145
#, no-c-format
msgid ""
"If you enable <literal>hibernate.generate_statistics, Hibernate "
"exposes a number of metrics that are useful when tuning a running system via "
"<literal>SessionFactory.getStatistics(). Hibernate can even be "
"configured to expose these statistics via JMX. Read the Javadoc of the "
"interfaces in <literal>org.hibernate.stats for more information."
msgstr ""
"å¦‚æžœä½ å¼€å¯ <literal>hibernate.generate_statisticsï¼Œé‚£ä¹ˆå½“ä½ é€šè¿‡ "
"<literal>SessionFactory.getStatistics() 调整æ£åœ¨è¿è¡Œçš„系统时,"
"Hibernate 将导出大é‡æœ‰ç”¨çš„æ•°æ®ã€‚Hibernate 甚至能被é…ç½®æˆé€šè¿‡ JMX 导出这些统计"
"ä¿¡æ¯ã€‚å‚考 <literal>org.hibernate.stats ä¸æŽ¥å£çš„ Javadoc,以获得更"
"多信æ¯ã€‚ "
#. Tag: title
#: configuration.xml:1155
#, no-c-format
msgid "Logging"
msgstr "日志"
#. Tag: para
#: configuration.xml:1157
#, no-c-format
msgid ""
"Hibernate utilizes <ulink url=\"http://www.slf4j.org/\">Simple Logging "
"Facade for Java</ulink> (SLF4J) in order to log various system events. SLF4J "
"can direct your logging output to several logging frameworks (NOP, Simple, "
"log4j version 1.2, JDK 1.4 logging, JCL or logback) depending on your chosen "
"binding. In order to setup logging you will need <filename>slf4j-api.jar in the case of Log4J. See "
"the SLF4J <ulink url=\"http://www.slf4j.org/manual.html\">documentation file in your classpath. An example "
"properties file is distributed with Hibernate in the <literal>src/ "
"directory."
msgstr ""
"Hibernate 利用 <ulink url=\"http://www.slf4j.org/\">Simple Logging Facade "
"for Java</ulink> (SLF4J) æ¥è®°å½•ä¸åŒç³»ç»Ÿäº‹ä»¶çš„日志。SLF4J å¯ä»¥æ ¹æ®ä½ 选择的绑定"
"æŠŠæ—¥å¿—è¾“å‡ºåˆ°å‡ ä¸ªæ—¥å¿—æ¡†æž¶ï¼ˆNOPã€Simpleã€log4j version 1.2ã€JDK 1.4 loggingã€"
"JCL 或 logbackï¼‰ä¸Šã€‚ä¸ºäº†è®¾ç½®æ—¥å¿—ï¼Œä½ éœ€è¦åœ¨ classpath é‡ŒåŠ å…¥ <filename>slf4j-"
"api.jar</filename> å’Œä½ é€‰æ‹©çš„ç»‘å®šçš„ JAR 文件(使用 Log4J æ—¶åŠ å…¥ "
"<filename>slf4j-log4j12.jar)。更多的细节请å‚考 SLF4J 。è¦ä½¿ç”¨ Log4jï¼Œä½ ä¹Ÿéœ€è¦åœ¨ "
"classpath é‡ŒåŠ å…¥ <filename>log4j.properties 文件。Hibernate 里的 "
"<literal>src/ 目录里带有一个属性文件的例å。"
#. Tag: para
#: configuration.xml:1171
#, no-c-format
msgid ""
"It is recommended that you familiarize yourself with Hibernate's log "
"messages. A lot of work has been put into making the Hibernate log as "
"detailed as possible, without making it unreadable. It is an essential "
"troubleshooting device. The most interesting log categories are the "
"following:"
msgstr ""
"æˆ‘ä»¬å¼ºçƒˆå»ºè®®ä½ ç†Ÿæ‚‰ä¸€ä¸‹ Hibernate 的日志消æ¯ã€‚在ä¸å¤±å¯è¯»æ€§çš„å‰æ下,我们åšäº†å¾ˆ"
"多工作,使 Hibernate 的日志å¯èƒ½åœ°è¯¦ç»†ã€‚这是必è¦çš„查错利器。最令人感兴趣的日志"
"分类有如下这些:"
#. Tag: title
#: configuration.xml:1178
#, no-c-format
msgid "Hibernate Log Categories"
msgstr "Hibernate 日志类别"
#. Tag: entry
#: configuration.xml:1187
#, no-c-format
msgid "Category"
msgstr "类别"
#. Tag: entry
#: configuration.xml:1189
#, no-c-format
msgid "Function"
msgstr "功能"
#. Tag: literal
#: configuration.xml:1195
#, fuzzy, no-c-format
msgid "org.hibernate.SQL"
msgstr "org.hibernate"
#. Tag: entry
#: configuration.xml:1197
#, no-c-format
msgid "Log all SQL DML statements as they are executed"
msgstr "在所有 SQL DML è¯å¥è¢«æ‰§è¡Œæ—¶ä¸ºå®ƒä»¬è®°å½•æ—¥å¿—"
#. Tag: literal
#: configuration.xml:1201
#, fuzzy, no-c-format
msgid "org.hibernate.type"
msgstr "org.hibernate"
#. Tag: entry
#: configuration.xml:1203
#, no-c-format
msgid "Log all JDBC parameters"
msgstr "为所有 JDBC å‚数记录日志"
#. Tag: literal
#: configuration.xml:1207
#, fuzzy, no-c-format
msgid "org.hibernate.tool.hbm2ddl"
msgstr "<literal>org.hibernate.tool.hbm2ddl"
#. Tag: entry
#: configuration.xml:1209
#, no-c-format
msgid "Log all SQL DDL statements as they are executed"
msgstr "在所有 SQL DDL è¯å¥æ‰§è¡Œæ—¶ä¸ºå®ƒä»¬è®°å½•æ—¥å¿—"
#. Tag: literal
#: configuration.xml:1213
#, fuzzy, no-c-format
msgid "org.hibernate.pretty"
msgstr "org.hibernate"
#. Tag: entry
#: configuration.xml:1215
#, no-c-format
msgid ""
"Log the state of all entities (max 20 entities) associated with the session "
"at flush time"
msgstr ""
"在 session 清洗(flush)时,为所有与其关è”的实体(最多 20 个)的状æ€è®°å½•æ—¥å¿—"
#. Tag: literal
#: configuration.xml:1220
#, fuzzy, no-c-format
msgid "org.hibernate.cache"
msgstr "org.hibernate"
#. Tag: entry
#: configuration.xml:1222
#, no-c-format
msgid "Log all second-level cache activity"
msgstr "为所有二级缓å˜çš„活动记录日志"
#. Tag: literal
#: configuration.xml:1226
#, fuzzy, no-c-format
msgid "org.hibernate.transaction"
msgstr "<literal>org.hibernate.transaction"
#. Tag: entry
#: configuration.xml:1228
#, no-c-format
msgid "Log transaction related activity"
msgstr "为事务相关的活动记录日志"
#. Tag: literal
#: configuration.xml:1232
#, fuzzy, no-c-format
msgid "org.hibernate.jdbc"
msgstr "org.hibernate"
#. Tag: entry
#: configuration.xml:1234
#, no-c-format
msgid "Log all JDBC resource acquisition"
msgstr "为所有 JDBC 资æºçš„获å–记录日志"
#. Tag: literal
#: configuration.xml:1238
#, fuzzy, no-c-format
msgid "org.hibernate.hql.ast.AST"
msgstr "<literal>org.hibernate.hql.ast.AST"
#. Tag: entry
#: configuration.xml:1240
#, no-c-format
msgid "Log HQL and SQL ASTs during query parsing"
msgstr "在解æžæŸ¥è¯¢çš„时候,记录 HQL å’Œ SQL çš„ AST 分æžæ—¥å¿—"
#. Tag: literal
#: configuration.xml:1244
#, fuzzy, no-c-format
msgid "org.hibernate.secure"
msgstr "org.hibernate"
#. Tag: entry
#: configuration.xml:1246
#, no-c-format
msgid "Log all JAAS authorization requests"
msgstr "为 JAAS 认è¯è¯·æ±‚åšæ—¥å¿—"
#. Tag: literal
#: configuration.xml:1250
#, no-c-format
msgid "org.hibernate"
msgstr "org.hibernate"
#. Tag: entry
#: configuration.xml:1252
#, no-c-format
msgid ""
"Log everything. This is a lot of information but it is useful for "
"troubleshooting"
msgstr "为任何 Hibernate 相关信æ¯è®°å½•æ—¥å¿—(信æ¯é‡è¾ƒå¤§ï¼Œä½†å¯¹æŸ¥é”™éžå¸¸æœ‰å¸®åŠ©ï¼‰"
#. Tag: para
#: configuration.xml:1259
#, no-c-format
msgid ""
"When developing applications with Hibernate, you should almost always work "
"with <literal>debug enabled for the category org."
"hibernate.SQL</literal>, or, alternatively, the property hibernate."
"show_sql</literal> enabled."
msgstr ""
"在使用 Hibernate å¼€å‘应用程åºæ—¶ï¼Œä½ 应当总是为 <literal>org.hibernate.SQLdebug 级别的日志记录,æˆ–è€…å¼€å¯ "
"<literal>hibernate.show_sql 属性。"
#. Tag: title
#: configuration.xml:1266
#, no-c-format
msgid "Implementing a <literal>NamingStrategy"
msgstr "实现 <literal>NamingStrategy"
#. Tag: para
#: configuration.xml:1268
#, no-c-format
msgid ""
"The interface <literal>org.hibernate.cfg.NamingStrategy allows you "
"to specify a \"naming standard\" for database objects and schema elements."
msgstr ""
"<literal>org.hibernate.cfg.NamingStrategy 接å£å…è®¸ä½ ä¸ºæ•°æ®åº“ä¸çš„对"
"象和 schema å…ƒç´ æŒ‡å®šä¸€ä¸ªâ€œå‘½åæ ‡å‡†â€ã€‚"
#. Tag: para
#: configuration.xml:1272
#, no-c-format
msgid ""
"You can provide rules for automatically generating database identifiers from "
"Java identifiers or for processing \"logical\" column and table names given "
"in the mapping file into \"physical\" table and column names. This feature "
"helps reduce the verbosity of the mapping document, eliminating repetitive "
"noise (<literal>TBL_ prefixes, for example). The default strategy "
"used by Hibernate is quite minimal."
msgstr ""
"ä½ å¯èƒ½ä¼šæ供一些通过 Java æ ‡è¯†ç”Ÿæˆæ•°æ®åº“æ ‡è¯†æˆ–å°†æ˜ å°„å®šä¹‰æ–‡ä»¶ä¸\"逻辑\"表/列å"
"处ç†æˆ\"物ç†\"表/列å的规则。这个特性有助于å‡å°‘å†—é•¿çš„æ˜ å°„å®šä¹‰æ–‡ä»¶ï¼Œæ¶ˆé™¤é‡å¤å†…"
"容(如 <literal>TBL_ å‰ç¼€ï¼‰ã€‚Hibernate 使用的缺çœç–略是相当精简的。"
#. Tag: para
#: configuration.xml:1279
#, no-c-format
msgid ""
"You can specify a different strategy by calling <literal>Configuration."
"setNamingStrategy()</literal> before adding mappings:"
msgstr ""
"åœ¨åŠ å…¥æ˜ å°„å®šä¹‰å‰ï¼Œä½ å¯ä»¥è°ƒç”¨ <literal>Configuration.setNamingStrategy() is a built-in "
"strategy that might be a useful starting point for some applications."
msgstr ""
"<literal>org.hibernate.cfg.ImprovedNamingStrategy 是一个内建的命å"
"ç–略,对一些应用程åºè€Œè¨€ï¼Œå¯èƒ½æ˜¯éžå¸¸æœ‰ç”¨çš„起点。"
#. Tag: title
#: configuration.xml:1291
#, no-c-format
msgid "XML configuration file"
msgstr "XML é…置文件"
#. Tag: para
#: configuration.xml:1293
#, no-c-format
msgid ""
"An alternative approach to configuration is to specify a full configuration "
"in a file named <literal>hibernate.cfg.xml. This file can be used "
"as a replacement for the <literal>hibernate.properties file or, if "
"both are present, to override properties."
msgstr ""
"å¦ä¸€ä¸ªé…置方法是在 <literal>hibernate.cfg.xml 文件ä¸æŒ‡å®šä¸€å¥—完整的"
"é…置。这个文件å¯ä»¥å½“æˆ <literal>hibernate.properties 的替代。若两个"
"文件åŒæ—¶å˜åœ¨ï¼Œå®ƒå°†è¦†ç›–å‰è€…的属性。"
#. Tag: para
#: configuration.xml:1299
#, no-c-format
msgid ""
"The XML configuration file is by default expected to be in the root of your "
"<literal>CLASSPATH. Here is an example:"
msgstr ""
"XML é…置文件被默认是放在 <literal>CLASSPATH çš„æ ¹ç›®å½•ä¸‹ã€‚ä¸‹é¢æ˜¯ä¸€ä¸ª"
"例å: "
#. Tag: programlisting
#: configuration.xml:1302
#, fuzzy, no-c-format
msgid ""
"<?xml version='1.0' encoding='utf-8'?>\n"
"<!DOCTYPE hibernate-configuration PUBLIC\n"
" \"-//Hibernate/Hibernate Configuration DTD//EN\"\n"
" \"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
"\">\n"
"\n"
"<hibernate-configuration>\n"
"\n"
" <!-- a SessionFactory instance listed as /jndi/name -->\n"
" <session-factory\n"
" name=\"java:hibernate/SessionFactory\">\n"
"\n"
" <!-- properties -->\n"
" <property name=\"connection.datasource\">java:/comp/env/jdbc/"
"MyDB</property>\n"
" <property name=\"dialect\">org.hibernate.dialect."
"MySQLDialect</property>\n"
" <property name=\"show_sql\">false</property>\n"
" <property name=\"transaction.factory_class\">\n"
" org.hibernate.transaction.JTATransactionFactory\n"
" </property>\n"
" <property name=\"jta.UserTransaction\">java:comp/"
"UserTransaction</property>\n"
"\n"
" <!-- mapping files -->\n"
" <mapping resource=\"org/hibernate/auction/Item.hbm.xml\"/>\n"
" <mapping resource=\"org/hibernate/auction/Bid.hbm.xml\"/>\n"
"\n"
" <!-- cache settings -->\n"
" <class-cache class=\"org.hibernate.auction.Item\" usage=\"read-"
"write\"/>\n"
" <class-cache class=\"org.hibernate.auction.Bid\" usage=\"read-only"
"\"/>\n"
" <collection-cache collection=\"org.hibernate.auction.Item.bids\" "
"usage=\"read-write\"/>\n"
"\n"
" </session-factory>\n"
"\n"
"</hibernate-configuration>"
msgstr ""
"<![CDATA[\n"
" <property name=\"transaction.factory_class\">\n"
" org.hibernate.transaction.JTATransactionFactory\n"
" </property>\n"
" <property name=\"jta.UserTransaction\">java:comp/UserTransaction"
#. Tag: para
#: configuration.xml:1304
#, no-c-format
msgid ""
"The advantage of this approach is the externalization of the mapping file "
"names to configuration. The <literal>hibernate.cfg.xml is also "
"more convenient once you have to tune the Hibernate cache. It is your choice "
"to use either <literal>hibernate.properties or hibernate."
"cfg.xml</literal>. Both are equivalent, except for the above mentioned "
"benefits of using the XML syntax."
msgstr ""
"å¦‚ä½ æ‰€è§ï¼Œè¿™ä¸ªæ–¹æ³•ä¼˜åŠ¿åœ¨äºŽï¼Œåœ¨é…置文件ä¸æŒ‡å‡ºäº†æ˜ 射定义文件的åå—ã€‚ä¸€æ—¦ä½ éœ€è¦"
"调整 Hibernate 的缓å˜ï¼Œ<literal>hibernate.cfg.xml 也是更方便。注"
"æ„,使用 <literal>hibernate.properties 还是 hibernate.cfg."
"xml</literal> å®Œå…¨æ˜¯ç”±ä½ æ¥å†³å®šï¼Œé™¤äº†ä¸Šé¢æ到的 XML è¯æ³•çš„优势之外,两者是ç‰ä»·"
"的。 "
#. Tag: para
#: configuration.xml:1311
#, no-c-format
msgid "With the XML configuration, starting Hibernate is then as simple as:"
msgstr "使用 XML é…置,使得å¯åŠ¨ Hibernate å˜çš„异常简å•ï¼š"
#. Tag: programlisting
#: configuration.xml:1314
#, fuzzy, no-c-format
msgid ""
"SessionFactory sf = new Configuration().configure().buildSessionFactory();"
msgstr ""
"<![CDATA[SessionFactory sf = new Configuration().configure()."
"buildSessionFactory();]]>"
#. Tag: para
#: configuration.xml:1316
#, no-c-format
msgid "You can select a different XML configuration file using:"
msgstr "ä½ å¯ä»¥ä½¿ç”¨å¦‚下代ç æ¥æ·»åŠ 一个ä¸åŒçš„ XML é…置文件:"
#. Tag: programlisting
#: configuration.xml:1318
#, fuzzy, no-c-format
msgid ""
"SessionFactory sf = new Configuration()\n"
" .configure(\"catdb.cfg.xml\")\n"
" .buildSessionFactory();"
msgstr ""
"<![CDATA[SessionFactory sf = new Configuration()\n"
" .configure(\"catdb.cfg.xml\")\n"
" .buildSessionFactory();]]>"
#. Tag: title
#: configuration.xml:1322
#, no-c-format
msgid "J2EE Application Server integration"
msgstr "J2EE 应用程åºæœåŠ¡å™¨çš„集æˆ"
#. Tag: para
#: configuration.xml:1324
#, no-c-format
msgid "Hibernate has the following integration points for J2EE infrastructure:"
msgstr "针对 J2EE 体系,Hibernate æœ‰å¦‚ä¸‹å‡ ä¸ªé›†æˆçš„æ–¹é¢ï¼š"
#. Tag: para
#: configuration.xml:1329
#, no-c-format
msgid ""
"<emphasis>Container-managed datasources: Hibernate can use JDBC "
"connections managed by the container and provided through JNDI. Usually, a "
"JTA compatible <literal>TransactionManager and a "
"<literal>ResourceManager take care of transaction management "
"(CMT), especially distributed transaction handling across several "
"datasources. You can also demarcate transaction boundaries programmatically "
"(BMT), or you might want to use the optional Hibernate <literal>Transaction: "
"Hibernate 能使用通过容器管ç†ï¼Œå¹¶ç”± JNDI æ供的 JDBC 连接。通常,特别是当处ç†"
"多个数æ®æºçš„分布å¼äº‹åŠ¡çš„时候,由一个 JTA 兼容的 <literal>TransactionManagerResourceManager æ¥å¤„ç†äº‹åŠ¡ç®¡ç†ï¼ˆCMT,容器"
"管ç†çš„äº‹åŠ¡ï¼‰ã€‚å½“ç„¶ä½ å¯ä»¥é€šè¿‡ 编程方å¼æ¥åˆ’分事务边界(BMT,Bean 管ç†çš„事务)。"
"或者为了代ç çš„å¯ç§»æ¤æ€§ï¼Œä½ 也也许会想使用å¯é€‰çš„ Hibernate "
"<literal>Transaction API。 "
#. Tag: para
#: configuration.xml:1343
#, no-c-format
msgid ""
"<emphasis>Automatic JNDI binding: Hibernate can bind its "
"<literal>SessionFactory to JNDI after startup."
msgstr ""
"<emphasis>自动 JNDI 绑定:Hibernate å¯ä»¥åœ¨å¯åŠ¨åŽå°† "
"<literal>SessionFactory 绑定到 JNDI。"
#. Tag: para
#: configuration.xml:1350
#, no-c-format
msgid ""
"<emphasis>JTA Session binding: the Hibernate Session from JNDI and get the current "
"<literal>Session. Let Hibernate manage flushing and closing the "
"<literal>Session when your JTA transaction completes. Transaction "
"demarcation is either declarative (CMT) or programmatic (BMT/"
"UserTransaction)."
msgstr ""
"<emphasis>JTA Session 绑定: Hibernate Session "
"å¯ä»¥è‡ªåŠ¨ç»‘定到 JTA 事务作用的范围。åªéœ€ç®€å•åœ°ä»Ž JNDI 查找 "
"<literal>SessionFactory 并获得当å‰çš„ Session。"
"当 JTA 事务完æˆæ—¶ï¼Œè®© Hibernateæ¥å¤„ç† <literal>Session 的清洗"
"(flush)与关é—。事务的划分å¯ä»¥æ˜¯å£°æ˜Žå¼çš„(CMT),也å¯ä»¥æ˜¯ç¼–程å¼çš„(BMT/"
"UserTransaction)。 "
#. Tag: para
#: configuration.xml:1362
#, no-c-format
msgid ""
"<emphasis>JMX deployment: if you have a JMX capable application "
"server (e.g. JBoss AS), you can choose to deploy Hibernate as a managed "
"MBean. This saves you the one line startup code to build your "
"<literal>SessionFactory from a Configuration. "
"The container will startup your <literal>HibernateService and also "
"take care of service dependencies (datasource has to be available before "
"Hibernate starts, etc)."
msgstr ""
"<emphasis>JMX 部署: å¦‚æžœä½ ä½¿ç”¨æ”¯æŒ JMX 应用程åºæœåŠ¡å™¨ï¼ˆå¦‚,JBoss "
"ASï¼‰ï¼Œé‚£ä¹ˆä½ å¯ä»¥é€‰æ‹©å°† Hibernate 部署æˆæ‰˜ç®¡ MBeanã€‚è¿™å°†ä¸ºä½ çœåŽ»ä¸€è¡Œä»Ž"
"<literal>Configuration 构建 SessionFactory çš„å¯"
"动代ç 。容器将å¯åŠ¨ä½ çš„ <literal>HibernateService,并完美地处ç†å¥½æœ"
"务间的ä¾èµ–关系(在 Hibernate å¯åŠ¨å‰ï¼Œæ•°æ®æºå¿…须是å¯ç”¨çš„,ç‰ç‰ï¼‰ã€‚ "
#. Tag: para
#: configuration.xml:1373
#, no-c-format
msgid ""
"Depending on your environment, you might have to set the configuration "
"option <literal>hibernate.connection.aggressive_release to true if "
"your application server shows \"connection containment\" exceptions."
msgstr ""
"如果应用程åºæœåŠ¡å™¨æŠ›å‡º \"connection containment\" å¼‚å¸¸ï¼Œæ ¹æ®ä½ 的环境,也许该"
"å°†é…置属性 <literal>hibernate.connection.release_mode 设为 "
"<literal>after_statement。"
#. Tag: title
#: configuration.xml:1379
#, no-c-format
msgid "Transaction strategy configuration"
msgstr "事务ç–ç•¥é…ç½®"
#. Tag: para
#: configuration.xml:1381
#, no-c-format
msgid ""
"The Hibernate <literal>Session API is independent of any "
"transaction demarcation system in your architecture. If you let Hibernate "
"use JDBC directly through a connection pool, you can begin and end your "
"transactions by calling the JDBC API. If you run in a J2EE application "
"server, you might want to use bean-managed transactions and call the JTA API "
"and <literal>UserTransaction when needed."
msgstr ""
"åœ¨ä½ çš„æž¶æž„ä¸ï¼ŒHibernate çš„ <literal>Session API 是独立于任何事务分"
"ç•Œç³»ç»Ÿçš„ã€‚å¦‚æžœä½ è®© Hibernate é€šè¿‡è¿žæŽ¥æ± ç›´æŽ¥ä½¿ç”¨ JDBCï¼Œä½ éœ€è¦è°ƒç”¨ JDBC API æ¥"
"打开和关é—ä½ çš„äº‹åŠ¡ã€‚å¦‚æžœä½ è¿è¡Œåœ¨ J2EE 应用程åºæœåŠ¡å™¨ä¸ï¼Œä½ 也许想用 Bean 管ç†"
"的事务并在需è¦çš„时候调用 JTA API å’Œ <literal>UserTransaction。 "
#. Tag: para
#: configuration.xml:1389
#, no-c-format
msgid ""
"To keep your code portable between these two (and other) environments we "
"recommend the optional Hibernate <literal>Transaction API, which "
"wraps and hides the underlying system. You have to specify a factory class "
"for <literal>Transaction instances by setting the Hibernate "
"configuration property <literal>hibernate.transaction.factory_class API,它包装并éšè—äº†åº•å±‚ç³»ç»Ÿã€‚ä½ å¿…é¡»é€šè¿‡è®¾ç½® "
"Hibernate é…置属性 <literal>hibernate.transaction.factory_class æ¥"
"指定一个 <literal>Transaction 实例的工厂类。"
#. Tag: para
#: configuration.xml:1397
#, no-c-format
msgid "There are three standard, or built-in, choices:"
msgstr "æœ‰ä¸‰ä¸ªæ ‡å‡†ï¼ˆå†…å»ºï¼‰çš„é€‰æ‹©ï¼š "
#. Tag: literal
#: configuration.xml:1401
#, fuzzy, no-c-format
msgid "org.hibernate.transaction.JDBCTransactionFactory"
msgstr "<literal>org.hibernate.transaction.JDBCTransactionFactory"
#. Tag: para
#: configuration.xml:1404
#, no-c-format
msgid "delegates to database (JDBC) transactions (default)"
msgstr "委托给数æ®åº“(JDBC)事务(默认)"
#. Tag: literal
#: configuration.xml:1409
#, fuzzy, no-c-format
msgid "org.hibernate.transaction.JTATransactionFactory"
msgstr "<literal>org.hibernate.transaction.JTATransactionFactory"
#. Tag: para
#: configuration.xml:1412
#, no-c-format
msgid ""
"delegates to container-managed transactions if an existing transaction is "
"underway in this context (for example, EJB session bean method). Otherwise, "
"a new transaction is started and bean-managed transactions are used."
msgstr ""
"如果在上下文环境ä¸å˜åœ¨è¿è¡Œç€çš„事务(如,EJB ä¼šè¯ Bean 的方法),则委托给容器"
"管ç†çš„事务。å¦åˆ™ï¼Œå°†å¯åŠ¨ä¸€ä¸ªæ–°çš„事务,并使用 Bean 管ç†çš„事务。"
#. Tag: literal
#: configuration.xml:1420
#, fuzzy, no-c-format
msgid "org.hibernate.transaction.CMTTransactionFactory"
msgstr "<literal>org.hibernate.transaction.CMTTransactionFactory"
#. Tag: para
#: configuration.xml:1423
#, no-c-format
msgid "delegates to container-managed JTA transactions"
msgstr "委托给容器管ç†çš„ JTA 事务"
#. Tag: para
#: configuration.xml:1428
#, no-c-format
msgid ""
"You can also define your own transaction strategies (for a CORBA transaction "
"service, for example)."
msgstr "ä½ ä¹Ÿå¯ä»¥å®šä¹‰å±žäºŽä½ 自己的事务ç–略(如,针对 CORBA 的事务æœåŠ¡ï¼‰ã€‚"
#. Tag: para
#: configuration.xml:1431
#, no-c-format
msgid ""
"Some features in Hibernate (i.e., the second level cache, Contextual "
"Sessions with JTA, etc.) require access to the JTA "
"<literal>TransactionManager in a managed environment. In an "
"application server, since J2EE does not standardize a single mechanism, you "
"have to specify how Hibernate should obtain a reference to the "
"<literal>TransactionManager:"
msgstr ""
"Hibernate 的一些特性(比如二级缓å˜ï¼ŒContextual Sessions with JTA ç‰ç‰ï¼‰éœ€è¦è®¿"
"问在托管环境ä¸çš„ JTA <literal>TransactionManager。由于 J2EE æ²¡æœ‰æ ‡"
"准化一个å•ä¸€çš„机制,Hibernate 在应用程åºæœåŠ¡å™¨ä¸ï¼Œä½ 必须指定 Hibernate 如何获"
"得 <literal>TransactionManager 的引用: "
#. Tag: title
#: configuration.xml:1439
#, no-c-format
msgid "JTA TransactionManagers"
msgstr "JTA TransactionManagers"
#. Tag: entry
#: configuration.xml:1448
#, no-c-format
msgid "Transaction Factory"
msgstr "Transaction 工厂类"
#. Tag: entry
#: configuration.xml:1450
#, no-c-format
msgid "Application Server"
msgstr "应用程åºæœåŠ¡å™¨"
#. Tag: literal
#: configuration.xml:1456
#, fuzzy, no-c-format
msgid "org.hibernate.transaction.JBossTransactionManagerLookup"
msgstr ""
"<literal>org.hibernate.transaction.JBossTransactionManagerLookup"
#. Tag: entry
#: configuration.xml:1458
#, no-c-format
msgid "JBoss"
msgstr "JBoss"
#. Tag: literal
#: configuration.xml:1462
#, fuzzy, no-c-format
msgid "org.hibernate.transaction.WeblogicTransactionManagerLookup"
msgstr ""
"<literal>org.hibernate.transaction.WeblogicTransactionManagerLookup"
#. Tag: entry
#: configuration.xml:1464
#, no-c-format
msgid "Weblogic"
msgstr "Weblogic"
#. Tag: literal
#: configuration.xml:1468
#, fuzzy, no-c-format
msgid "org.hibernate.transaction.WebSphereTransactionManagerLookup"
msgstr ""
"<literal>org.hibernate.transaction.WebSphereTransactionManagerLookup"
#. Tag: entry
#: configuration.xml:1482
#, no-c-format
msgid "Orion"
msgstr "Orion"
#. Tag: literal
#: configuration.xml:1486
#, fuzzy, no-c-format
msgid "org.hibernate.transaction.ResinTransactionManagerLookup"
msgstr ""
"<literal>org.hibernate.transaction.ResinTransactionManagerLookup"
#. Tag: entry
#: configuration.xml:1488
#, no-c-format
msgid "Resin"
msgstr "Resin"
#. Tag: literal
#: configuration.xml:1492
#, fuzzy, no-c-format
msgid "org.hibernate.transaction.JOTMTransactionManagerLookup"
msgstr ""
"<literal>org.hibernate.transaction.JOTMTransactionManagerLookup"
#. Tag: entry
#: configuration.xml:1494
#, no-c-format
msgid "JOTM"
msgstr "JOTM"
#. Tag: literal
#: configuration.xml:1498
#, fuzzy, no-c-format
msgid "org.hibernate.transaction.JOnASTransactionManagerLookup"
msgstr ""
"<literal>org.hibernate.transaction.JOnASTransactionManagerLookup"
#. Tag: entry
#: configuration.xml:1500
#, no-c-format
msgid "JOnAS"
msgstr "JOnAS"
#. Tag: literal
#: configuration.xml:1504
#, fuzzy, no-c-format
msgid "org.hibernate.transaction.JRun4TransactionManagerLookup"
msgstr ""
"<literal>org.hibernate.transaction.JRun4TransactionManagerLookup"
#. Tag: entry
#: configuration.xml:1506
#, no-c-format
msgid "JRun4"
msgstr "JRun4"
#. Tag: literal
#: configuration.xml:1510
#, fuzzy, no-c-format
msgid "org.hibernate.transaction.BESTransactionManagerLookup"
msgstr ""
"<literal>org.hibernate.transaction.BESTransactionManagerLookup"
#. Tag: entry
#: configuration.xml:1512
#, no-c-format
msgid "Borland ES"
msgstr "Borland ES"
#. Tag: title
#: configuration.xml:1520
#, no-c-format
msgid "JNDI-bound <literal>SessionFactory"
msgstr "JNDI 绑定的 <literal>SessionFactory"
#. Tag: para
#: configuration.xml:1522
#, no-c-format
msgid ""
"A JNDI-bound Hibernate <literal>SessionFactory can simplify the "
"lookup function of the factory and create new <literal>Sessions. "
"This is not, however, related to a JNDI bound <literal>Datasource; "
"both simply use the same registry."
msgstr ""
"与 JNDI 绑定的 Hibernate 的 <literal>SessionFactory 能简化工厂的查"
"询,简化创建新的 <literal>Session。需è¦æ³¨æ„的是这与 JNDI 绑定 "
"<literal>Datasource 没有关系,它们åªæ˜¯æ°å·§ç”¨äº†ç›¸åŒçš„注册表。"
#. Tag: para
#: configuration.xml:1528
#, no-c-format
msgid ""
"If you wish to have the <literal>SessionFactory bound to a JNDI "
"namespace, specify a name (e.g. <literal>java:hibernate/SessionFactoryhibernate.session_factory_nameSessionFactory "
"will not be bound to JNDI. This is especially useful in environments with a "
"read-only JNDI default implementation (in Tomcat, for example)."
msgstr ""
"å¦‚æžœä½ å¸Œæœ›å°† <literal>SessionFactory 绑定到一个 JNDI çš„åå—空间,用"
"属性 <literal>hibernate.session_factory_name 指定一个åå—(如,"
"<literal>java:hibernate/SessionFactory)。如果ä¸è®¾ç½®è¿™ä¸ªå±žæ€§ï¼Œ"
"<literal>SessionFactory å°†ä¸ä¼šè¢«ç»‘定到 JNDI ä¸ï¼ˆåœ¨ä»¥åªè¯» JNDI 为默"
"认实现的环境ä¸ï¼Œè¿™ä¸ªè®¾ç½®å°¤å…¶æœ‰ç”¨ï¼Œå¦‚ Tomcat)。"
#. Tag: para
#: configuration.xml:1536
#, no-c-format
msgid ""
"When binding the <literal>SessionFactory to JNDI, Hibernate will "
"use the values of <literal>hibernate.jndi.url, hibernate."
"jndi.class</literal> to instantiate an initial context. If they are not "
"specified, the default <literal>InitialContext will be used."
msgstr ""
"在将 <literal>SessionFactory 绑定至 JNDI 时,Hibernate 将使用 "
"<literal>hibernate.jndi.url,和 hibernate.jndi.class。"
#. Tag: para
#: configuration.xml:1542
#, no-c-format
msgid ""
"Hibernate will automatically place the <literal>SessionFactory in "
"JNDI after you call <literal>cfg.buildSessionFactory(). This means "
"you will have this call in some startup code, or utility class in your "
"application, unless you use JMX deployment with the "
"<literal>HibernateService (this is discussed later in greater "
"detail)."
msgstr ""
"åœ¨ä½ è°ƒç”¨ <literal>cfg.buildSessionFactory()åŽï¼ŒHibernate 会自动将 "
"<literal>SessionFactory 注册到 JNDI。这æ„å‘³è¿™ä½ è‡³å°‘éœ€è¦åœ¨ä½ 应用程åº"
"çš„å¯åŠ¨ä»£ç (或工具类)ä¸å®Œæˆè¿™ä¸ªè°ƒç”¨ï¼Œé™¤éžä½ 使用 <literal>HibernateService, an EJB or any other "
"class, you can obtain the <literal>SessionFactory using a JNDI "
"lookup."
msgstr ""
"å‡è‹¥ä½ 使用 JNDI <literal>SessionFactory,EJB 或者任何其它类都å¯ä»¥"
"从 JNDI ä¸æ‰¾åˆ°æ¤ <literal>SessionFactory。 "
#. Tag: para
#: configuration.xml:1554
#, fuzzy, no-c-format
msgid ""
"It is recommended that you bind the <literal>SessionFactory to "
"JNDI in a managed environment and use a <literal>static singleton "
"otherwise. To shield your application code from these details, we also "
"recommend to hide the actual lookup code for a <literal>SessionFactoryHibernateUtil.getSessionFactory"
"()</literal>. Note that such a class is also a convenient way to startup "
"Hibernate—see chapter 1."
msgstr ""
"我们建议,在å—管ç†çš„环境ä¸ï¼ŒæŠŠ <literal>SessionFactory 绑定到 "
"JNDI,在其它情况下,使用一个 <literal>static(é™æ€çš„)singleton。为"
"äº†åœ¨ä½ çš„åº”ç”¨ç¨‹åºä»£ç ä¸éšè—è¿™äº›ç»†èŠ‚ï¼Œæˆ‘ä»¬è¿˜å»ºè®®ä½ ç”¨ä¸€ä¸ª helper 类把实际查找 "
"<literal>SessionFactory 的代ç éšè—èµ·æ¥ï¼Œæ¯”如 "
"<literal>HibernateUtil.getSessionFactory()。注æ„,这个类也就å¯ä»¥æ–¹"
"便地å¯åŠ¨ Hibernate,å‚è§ç¬¬ä¸€ç« 。 "
#. Tag: title
#: configuration.xml:1565
#, no-c-format
msgid "Current Session context management with JTA"
msgstr "在 JTA 环境下使用 Current Session contextï¼ˆå½“å‰ session 上下文)管ç†"
#. Tag: para
#: configuration.xml:1567
#, fuzzy, no-c-format
msgid ""
"The easiest way to handle <literal>Sessions and transactions is "
"Hibernate's automatic \"current\" <literal>Session management. For "
"a discussion of contextual sessions see <xref linkend=\"architecture-current-"
"session\"/>. Using the <literal>\"jta\" session context, if there "
"is no Hibernate <literal>Session associated with the current JTA "
"transaction, one will be started and associated with that JTA transaction "
"the first time you call <literal>sessionFactory.getCurrentSession()Sessions retrieved via "
"<literal>getCurrentSession() in the \"jta\" "
"context are set to automatically flush before the transaction completes, "
"close after the transaction completes, and aggressively release JDBC "
"connections after each statement. This allows the <literal>Session API to set transaction boundaries. If you run "
"in an EJB container, declarative transaction demarcation with CMT is "
"preferred."
msgstr ""
"在 Hibernate ä¸ï¼Œç®¡ç† <literal>Session å’Œ transaction 最好的方法是"
"自动的\"当å‰\"<literal>Session 管ç†ã€‚请å‚è§ \"jta\" å…³è”,第一次 sessionFactory."
"getCurrentSession()</literal> 调用会å¯åŠ¨ä¸€ä¸ª Session,并关è”到当å‰çš„ JTA 事"
"务。在 <literal>\"jta\" 上下文ä¸è°ƒç”¨ getCurrentSession()Session,会被设置为在 transaction å…³é—çš„æ—¶"
"候自动 flush(清洗)ã€åœ¨ transaction å…³é—之åŽè‡ªåŠ¨å…³é—,æ¯å¥è¯å¥ä¹‹åŽä¸»åŠ¨é‡Šæ”¾ "
"JDBC 连接。这就å¯ä»¥æ ¹æ® JTA 事务的生命周期æ¥ç®¡ç†ä¸Žä¹‹å…³è”çš„ <literal>Session用编程方å¼ä½¿ç”¨ JTA,或者(我们建议,为了便"
"于移æ¤ä»£ç )使用 Hibernate çš„ <literal>Transaction API æ¥è®¾ç½® "
"transaction è¾¹ç•Œã€‚å¦‚æžœä½ çš„ä»£ç è¿è¡Œåœ¨ EJB 容器ä¸ï¼Œæˆ‘们建议对 CMT 使用声明å¼äº‹"
"务声明。 "
#. Tag: title
#: configuration.xml:1590
#, no-c-format
msgid "JMX deployment"
msgstr "JMX 部署"
#. Tag: para
#: configuration.xml:1592
#, no-c-format
msgid ""
"The line <literal>cfg.buildSessionFactory() still has to be "
"executed somewhere to get a <literal>SessionFactory into JNDI. You "
"can do this either in a <literal>static initializer block, like "
"the one in <literal>HibernateUtil, or you can deploy Hibernate as "
"a <emphasis>managed service."
msgstr ""
"为了将 <literal>SessionFactory 注册到 JNDI ä¸ï¼Œcfg."
"buildSessionFactory()</literal> 这行代ç ä»éœ€åœ¨æŸå¤„è¢«æ‰§è¡Œã€‚ä½ å¯åœ¨ä¸€ä¸ª "
"<literal>static åˆå§‹åŒ–å—ï¼ˆåƒ HibernateUtil ä¸çš„"
"é‚£æ ·ï¼‰ä¸æ‰§è¡Œå®ƒæˆ–å°† Hibernate 部署为一个<emphasis>托管的æœåŠ¡ã€‚ "
#. Tag: para
#: configuration.xml:1598
#, no-c-format
msgid ""
"Hibernate is distributed with <literal>org.hibernate.jmx.HibernateService for JBoss 4.0.x:"
msgstr ""
"ä¸ºäº†éƒ¨ç½²åœ¨ä¸€ä¸ªæ”¯æŒ JMX 的应用程åºæœåŠ¡å™¨ä¸Šï¼ŒHibernate å’Œ <literal>org."
"hibernate.jmx.HibernateService</literal> 一åŒåˆ†å‘,如 Jboss AS。 实际的部署和"
"é…置是由应用程åºæœåŠ¡å™¨æ供者指定的。这里是 JBoss 4.0.x çš„ <literal>jboss-"
"service.xml</literal> æ ·ä¾‹ï¼š "
#. Tag: programlisting
#: configuration.xml:1604
#, fuzzy, no-c-format
msgid ""
"<?xml version=\"1.0\"?>\n"
"<server>\n"
"\n"
"<mbean code=\"org.hibernate.jmx.HibernateService\"\n"
" name=\"jboss.jca:service=HibernateFactory,name=HibernateFactory\">\n"
"\n"
" <!-- Required services -->\n"
" <depends>jboss.jca:service=RARDeployer</depends>\n"
" <depends>jboss.jca:service=LocalTxCM,name=HsqlDS</depends>\n"
"\n"
" <!-- Bind the Hibernate service to JNDI -->\n"
" <attribute name=\"JndiName\">java:/hibernate/SessionFactory</"
"attribute>\n"
"\n"
" <!-- Datasource settings -->\n"
" <attribute name=\"Datasource\">java:HsqlDS</attribute>\n"
" <attribute name=\"Dialect\">org.hibernate.dialect.HSQLDialect</"
"attribute>\n"
"\n"
" <!-- Transaction integration -->\n"
" <attribute name=\"TransactionStrategy\">\n"
" org.hibernate.transaction.JTATransactionFactory</attribute>\n"
" <attribute name=\"TransactionManagerLookupStrategy\">\n"
" org.hibernate.transaction.JBossTransactionManagerLookup</"
"attribute>\n"
" <attribute name=\"FlushBeforeCompletionEnabled\">true</"
"attribute>\n"
" <attribute name=\"AutoCloseSessionEnabled\">true</"
"attribute>\n"
"\n"
" <!-- Fetching options -->\n"
" <attribute name=\"MaximumFetchDepth\">5</attribute>\n"
"\n"
" <!-- Second-level caching -->\n"
" <attribute name=\"SecondLevelCacheEnabled\">true</"
"attribute>\n"
" <attribute name=\"CacheProviderClass\">org.hibernate.cache."
"EhCacheProvider</attribute>\n"
" <attribute name=\"QueryCacheEnabled\">true</attribute>\n"
"\n"
" <!-- Logging -->\n"
" <attribute name=\"ShowSqlEnabled\">true</attribute>\n"
"\n"
" <!-- Mapping files -->\n"
" <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/"
"Category.hbm.xml</attribute>\n"
"\n"
"</mbean>\n"
"\n"
"</server>"
msgstr ""
"<![CDATA[\n"
" <depends>jboss.jca:service=LocalTxCM,name=HsqlDS\n"
"\n"
" <!-- Bind the Hibernate service to JNDI -->\n"
" <attribute name=\"JndiName\">java:/hibernate/SessionFactory\n"
"\n"
" <!-- Datasource settings -->\n"
" <attribute name=\"Datasource\">java:HsqlDS\n"
" <attribute name=\"Dialect\">org.hibernate.dialect.HSQLDialect\n"
" <attribute name=\"AutoCloseSessionEnabled\">true\n"
"\n"
" <!-- Fetching options -->\n"
" <attribute name=\"MaximumFetchDepth\">5\n"
"\n"
" <!-- Second-level caching -->\n"
" <attribute name=\"SecondLevelCacheEnabled\">true\n"
" <attribute name=\"CacheProviderClass\">org.hibernate.cache."
"EhCacheProvider</attribute>\n"
" <attribute name=\"QueryCacheEnabled\">true\n"
"\n"
" <!-- Logging -->\n"
" <attribute name=\"ShowSqlEnabled\">true\n"
"\n"
" <!-- Mapping files -->\n"
" <attribute name=\"MapResources\">auction/Item.hbm.xml,auction/Category."
"hbm.xml</attribute>\n"
"\n"
"</mbean>\n"
"\n"
"</server>]]>"
#. Tag: para
#: configuration.xml:1606
#, no-c-format
msgid ""
"This file is deployed in a directory called <literal>META-INF and "
"packaged in a JAR file with the extension <literal>.sar (service "
"archive). You also need to package Hibernate, its required third-party "
"libraries, your compiled persistent classes, as well as your mapping files "
"in the same archive. Your enterprise beans (usually session beans) can be "
"kept in their own JAR file, but you can include this EJB JAR file in the "
"main service archive to get a single (hot-)deployable unit. Consult the "
"JBoss AS documentation for more information about JMX service and EJB "
"deployment."
msgstr ""
"这个文件是部署在 <literal>META-INF 目录下的,并会被打包到以 "
"<literal>.sar(service archive)为扩展åçš„ JAR 文件ä¸ã€‚åŒæ—¶ï¼Œä½ 需è¦"
"å°† Hibernateã€å®ƒæ‰€éœ€è¦çš„第三方库ã€ä½ 编译好的æŒä¹…化类以åŠä½ çš„æ˜ å°„å®šä¹‰æ–‡ä»¶æ‰“åŒ…"
"è¿›åŒä¸€ä¸ªæ–‡æ¡£ã€‚ä½ çš„ä¼ä¸š Beanï¼ˆä¸€èˆ¬ä¸ºä¼šè¯ Bean)å¯èƒ½ä¼šè¢«æ‰“包æˆå®ƒä»¬è‡ªå·±çš„ JAR æ–‡"
"ä»¶ï¼Œä½†ä½ ä¹Ÿè®¸ä¼šå°† EJB JAR 文件一åŒåŒ…å«è¿›èƒ½ç‹¬ç«‹ï¼ˆçƒï¼‰éƒ¨ç½²çš„主æœåŠ¡æ–‡æ¡£ã€‚å‚考 "
"JBoss AS 文档以了解更多的 JMXæœåŠ¡ä¸Ž EJB 部署的信æ¯ã€‚ "
#~ msgid "<emphasis>JDBC URL"
#~ msgstr "<emphasis>JDBC URL"
#~ msgid "<emphasis>database user"
#~ msgstr "<emphasis>æ•°æ®åº“用户(å¯é€‰ï¼‰ "
#~ msgid "<emphasis>database user password"
#~ msgstr "<emphasis>æ•°æ®åº“密ç (å¯é€‰ï¼‰ "
#~ msgid "<emphasis>datasource JNDI name"
#~ msgstr "<emphasis>æ•°æ®åº“用户(å¯é€‰ï¼‰ "
#~ msgid "<property>hibernate.generate_statistics"
#~ msgstr "<property>hibernate.generate_statistics"
#~ msgid "<literal>hibernate.query.substitutions"
#~ msgstr "<literal>hibernate.query.substitutions"
#~ msgid "DB2"
#~ msgstr "DB2"
#~ msgid "<literal>org.hibernate.SQL"
#~ msgstr "<literal>org.hibernate.SQL"
#~ msgid "<literal>org.hibernate.type"
#~ msgstr "<literal>org.hibernate.type"
#~ msgid "<literal>org.hibernate.pretty"
#~ msgstr "<literal>org.hibernate.pretty"
#~ msgid "<literal>org.hibernate.cache"
#~ msgstr "<literal>org.hibernate.cache"
#~ msgid "<literal>org.hibernate.jdbc"
#~ msgstr "<literal>org.hibernate.jdbc"
#~ msgid "<literal>org.hibernate.secure"
#~ msgstr "<literal>org.hibernate.secure"
#~ msgid "<literal>org.hibernate"
#~ msgstr "<literal>org.hibernate"
Other Hibernate examples (source code examples)
Here is a short list of links related to this Hibernate configuration.po source code file:
|