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

📄 configuration.pot

📁 hibernate-distribution-3.3.1.GA-dist.zip源码
💻 POT
📖 第 1 页 / 共 5 页
字号:
#. Tag: entry#: configuration.xml:1082#, no-c-formatmsgid "SAP DB"msgstr ""#. Tag: literal#: configuration.xml:1082#, no-c-formatmsgid "org.hibernate.dialect.SAPDBDialect"msgstr ""#. Tag: entry#: configuration.xml:1085#, no-c-formatmsgid "Informix"msgstr ""#. Tag: literal#: configuration.xml:1085#, no-c-formatmsgid "org.hibernate.dialect.InformixDialect"msgstr ""#. Tag: entry#: configuration.xml:1088#, no-c-formatmsgid "HypersonicSQL"msgstr ""#. Tag: literal#: configuration.xml:1088#, no-c-formatmsgid "org.hibernate.dialect.HSQLDialect"msgstr ""#. Tag: entry#: configuration.xml:1091#, no-c-formatmsgid "Ingres"msgstr ""#. Tag: literal#: configuration.xml:1091#, no-c-formatmsgid "org.hibernate.dialect.IngresDialect"msgstr ""#. Tag: entry#: configuration.xml:1094#, no-c-formatmsgid "Progress"msgstr ""#. Tag: literal#: configuration.xml:1094#, no-c-formatmsgid "org.hibernate.dialect.ProgressDialect"msgstr ""#. Tag: entry#: configuration.xml:1097#, no-c-formatmsgid "Mckoi SQL"msgstr ""#. Tag: literal#: configuration.xml:1097#, no-c-formatmsgid "org.hibernate.dialect.MckoiDialect"msgstr ""#. Tag: entry#: configuration.xml:1100#, no-c-formatmsgid "Interbase"msgstr ""#. Tag: literal#: configuration.xml:1100#, no-c-formatmsgid "org.hibernate.dialect.InterbaseDialect"msgstr ""#. Tag: entry#: configuration.xml:1103#, no-c-formatmsgid "Pointbase"msgstr ""#. Tag: literal#: configuration.xml:1103#, no-c-formatmsgid "org.hibernate.dialect.PointbaseDialect"msgstr ""#. Tag: entry#: configuration.xml:1106#, no-c-formatmsgid "FrontBase"msgstr ""#. Tag: literal#: configuration.xml:1106#, no-c-formatmsgid "org.hibernate.dialect.FrontbaseDialect"msgstr ""#. Tag: entry#: configuration.xml:1109#, no-c-formatmsgid "Firebird"msgstr ""#. Tag: literal#: configuration.xml:1109#, no-c-formatmsgid "org.hibernate.dialect.FirebirdDialect"msgstr ""#. Tag: title#: configuration.xml:1118#, no-c-formatmsgid "Outer Join Fetching"msgstr ""#. Tag: para#: configuration.xml:1120#, no-c-formatmsgid "If your database supports ANSI, Oracle or Sybase style outer joins, <emphasis>outer join fetching</emphasis> will often increase performance by limiting the number of round trips to and from the database (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</literal>."msgstr ""#. Tag: para#: configuration.xml:1129#, no-c-formatmsgid "Outer join fetching may be disabled <emphasis>globally</emphasis> by setting the property <literal>hibernate.max_fetch_depth</literal> to <literal>0</literal>. A setting of <literal>1</literal> or higher enables outer join fetching for one-to-one and many-to-one associations which have been mapped with <literal>fetch=\"join\"</literal>."msgstr ""#. Tag: para#: configuration.xml:1137#, no-c-formatmsgid "See <xref linkend=\"performance-fetching\"/> for more information."msgstr ""#. Tag: title#: configuration.xml:1144#, no-c-formatmsgid "Binary Streams"msgstr ""#. Tag: para#: configuration.xml:1146#, no-c-formatmsgid "Oracle limits the size of <literal>byte</literal> arrays that may be passed to/from its JDBC driver. If you wish to use large instances of <literal>binary</literal> or <literal>serializable</literal> type, you should enable <literal>hibernate.jdbc.use_streams_for_binary</literal>. <emphasis>This is a system-level setting only.</emphasis>"msgstr ""#. Tag: title#: configuration.xml:1157#, no-c-formatmsgid "Second-level and query cache"msgstr ""#. Tag: para#: configuration.xml:1159#, no-c-formatmsgid "The properties prefixed by <literal>hibernate.cache</literal> allow you to use a process or cluster scoped second-level cache system with Hibernate. See the <xref linkend=\"performance-cache\"/> for more details."msgstr ""#. Tag: title#: configuration.xml:1169#, no-c-formatmsgid "Query Language Substitution"msgstr ""#. Tag: para#: configuration.xml:1171#, no-c-formatmsgid "You may define new Hibernate query tokens using <literal>hibernate.query.substitutions</literal>. For example:"msgstr ""#. Tag: programlisting#: configuration.xml:1176#, no-c-formatmsgid "hibernate.query.substitutions true=1, false=0"msgstr ""#. Tag: para#: configuration.xml:1178#, no-c-formatmsgid "would cause the tokens <literal>true</literal> and <literal>false</literal> to be translated to integer literals in the generated SQL."msgstr ""#. Tag: programlisting#: configuration.xml:1183#, no-c-formatmsgid "hibernate.query.substitutions toLowercase=LOWER"msgstr ""#. Tag: para#: configuration.xml:1185#, no-c-formatmsgid "would allow you to rename the SQL <literal>LOWER</literal> function."msgstr ""#. Tag: title#: configuration.xml:1192#, no-c-formatmsgid "Hibernate statistics"msgstr ""#. Tag: para#: configuration.xml:1194#, no-c-formatmsgid "If you enable <literal>hibernate.generate_statistics</literal>, Hibernate will expose a number of metrics that are useful when tuning a running system via <literal>SessionFactory.getStatistics()</literal>. Hibernate can even be configured to expose these statistics via JMX. Read the Javadoc of the interfaces in <literal>org.hibernate.stats</literal> for more information."msgstr ""#. Tag: title#: configuration.xml:1206#, no-c-formatmsgid "Logging"msgstr ""#. Tag: para#: configuration.xml:1208#, no-c-formatmsgid "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 properly you will need <filename>slf4j-api.jar</filename> in your classpath together with the jar file for your preferred binding - <filename>slf4j-log4j12.jar</filename> in the case of Log4J. See the SLF4J <ulink url=\"http://www.slf4j.org/manual.html\">documentation</ulink> for more detail. To use Log4j you will also need to place a <filename>log4j.properties</filename> file in your classpath, an example properties file is distributed with Hibernate in the <literal>src/</literal> directory."msgstr ""#. Tag: para#: configuration.xml:1219#, no-c-formatmsgid "We strongly recommend 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 ""#. Tag: title#: configuration.xml:1228#, no-c-formatmsgid "Hibernate Log Categories"msgstr ""#. Tag: entry#: configuration.xml:1234#, no-c-formatmsgid "Category"msgstr ""#. Tag: entry#: configuration.xml:1235#, no-c-formatmsgid "Function"msgstr ""#. Tag: literal#: configuration.xml:1240#, no-c-formatmsgid "org.hibernate.SQL"msgstr ""#. Tag: entry#: configuration.xml:1241#, no-c-formatmsgid "Log all SQL DML statements as they are executed"msgstr ""#. Tag: literal#: configuration.xml:1244#, no-c-formatmsgid "org.hibernate.type"msgstr ""#. Tag: entry#: configuration.xml:1245#, no-c-formatmsgid "Log all JDBC parameters"msgstr ""#. Tag: literal#: configuration.xml:1248#, no-c-formatmsgid "org.hibernate.tool.hbm2ddl"msgstr ""#. Tag: entry#: configuration.xml:1249#, no-c-formatmsgid "Log all SQL DDL statements as they are executed"msgstr ""#. Tag: literal#: configuration.xml:1252#, no-c-formatmsgid "org.hibernate.pretty"msgstr ""#. Tag: entry#: configuration.xml:1253#, no-c-formatmsgid "Log the state of all entities (max 20 entities) associated with the session at flush time"msgstr ""#. Tag: literal#: configuration.xml:1259#, no-c-formatmsgid "org.hibernate.cache"msgstr ""#. Tag: entry#: configuration.xml:1260#, no-c-formatmsgid "Log all second-level cache activity"msgstr ""#. Tag: literal#: configuration.xml:1263#, no-c-formatmsgid "org.hibernate.transaction"msgstr ""#. Tag: entry#: configuration.xml:1264#, no-c-formatmsgid "Log transaction related activity"msgstr ""#. Tag: literal#: configuration.xml:1267#, no-c-formatmsgid "org.hibernate.jdbc"msgstr ""#. Tag: entry#: configuration.xml:1268#, no-c-formatmsgid "Log all JDBC resource acquisition"msgstr ""#. Tag: literal#: configuration.xml:1271#, no-c-formatmsgid "org.hibernate.hql.ast.AST"msgstr ""#. Tag: entry#: configuration.xml:1272#, no-c-formatmsgid "Log HQL and SQL ASTs during query parsing"msgstr ""#. Tag: literal#: configuration.xml:1277#, no-c-formatmsgid "org.hibernate.secure"msgstr ""#. Tag: entry#: configuration.xml:1278#, no-c-formatmsgid "Log all JAAS authorization requests"msgstr ""#. Tag: literal#: configuration.xml:1281#, no-c-formatmsgid "org.hibernate"msgstr ""#. Tag: entry#: configuration.xml:1282#, no-c-formatmsgid "Log everything (a lot of information, but very useful for troubleshooting)"msgstr ""#. Tag: para#: configuration.xml:1291#, no-c-formatmsgid "When developing applications with Hibernate, you should almost always work with <literal>debug</literal> enabled for the category <literal>org.hibernate.SQL</literal>, or, alternatively, the property <literal>hibernate.show_sql</literal> enabled."msgstr ""#. Tag: title#: configuration.xml:1301#, no-c-formatmsgid "Implementing a <literal>NamingStrategy</literal>"msgstr ""#. Tag: para#: configuration.xml:1303#, no-c-formatmsgid "The interface <literal>org.hibernate.cfg.NamingStrategy</literal> allows you to specify a \"naming standard\" for database objects and schema elements."msgstr ""#. Tag: para#: configuration.xml:1308#, no-c-formatmsgid "You may 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_</literal> prefixes, for example). The default strategy used by Hibernate is quite minimal."msgstr ""#. Tag: para#: configuration.xml:1317#, no-c-formatmsgid "You may specify a different strategy by calling <literal>Configuration.setNamingStrategy()</literal> before adding mappings:"msgstr ""#. Tag: programlisting#: configuration.xml:1322#, no-c-formatmsgid ""      "<![CDATA[SessionFactory sf = new Configuration()\n"      "    .setNamingStrategy(ImprovedNamingStrategy.INSTANCE)\n"      "    .addFile(\"Item.hbm.xml\")\n"      "    .addFile(\"Bid.hbm.xml\")\n"      "    .buildSessionFactory();]]>"msgstr ""#. Tag: para#: configuration.xml:1324#, no-c-formatmsgid "<literal>org.hibernate.cfg.ImprovedNamingStrategy</literal> is a built-in strategy that might be a useful starting point for some applications."msgstr ""#. Tag: title#: configuration.xml:1332#, no-c-formatmsgid "XML configuration file"msgstr ""#. Tag: para#: configuration.xml:1334#, no-c-formatmsgid "An alternative approach to configuration is to specify a full configuration in a file named <literal>hibernate.cfg.xml</literal>. This file can be used as a replacement for the <literal>hibernate.properties</literal> file or, if both are present, to override properties."

⌨️ 快捷键说明

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