|
Hibernate example source code file (toolset_guide.po)
This example Hibernate source code file (toolset_guide.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 toolset_guide.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-02-11T05:38:16\n"
"PO-Revision-Date: 2010-03-16 10:12+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
#, no-c-format
msgid "Toolset Guide"
msgstr "工具箱指å—"
#. Tag: para
#, no-c-format
msgid "Roundtrip engineering with Hibernate is possible using a set of Eclipse plugins, commandline tools, and Ant tasks."
msgstr "å¯ä»¥é€šè¿‡ä¸€ç³»åˆ— Eclipse æ’件ã€å‘½ä»¤è¡Œå·¥å…·å’Œ Ant 任务æ¥è¿›è¡Œä¸Ž Hibernate å…³è”的转æ¢ã€‚ "
#. Tag: para
#, no-c-format
msgid "<emphasis>Hibernate Tools currently include plugins for the Eclipse IDE as well as Ant tasks for reverse engineering of existing databases:"
msgstr "除了 Ant 任务外,当å‰çš„ <emphasis>Hibernate Tools 也包å«äº† Eclipse IDE çš„æ’件,用于与现å˜æ•°æ®åº“的逆å‘工程。 "
#. Tag: para
#, no-c-format
msgid "<emphasis>Mapping Editor: an editor for Hibernate XML mapping files that supports auto-completion and syntax highlighting. It also supports semantic auto-completion for class names and property/field names, making it more versatile than a normal XML editor."
msgstr "<emphasis>Mapping Editor: Hibernate XML æ˜ å°„æ–‡ä»¶çš„ç¼–è¾‘å™¨ï¼Œæ”¯æŒè‡ªåŠ¨å®Œæˆå’Œè¯æ³•é«˜äº®ã€‚它也支æŒå¯¹ç±»å和属性/å—段åçš„è¯ä¹‰è‡ªåŠ¨å®Œæˆï¼Œæ¯”通常的 XML 编辑器方便得多。 "
#. Tag: para
#, no-c-format
msgid "<emphasis>Console: the console is a new view in Eclipse. In addition to a tree overview of your console configurations, you are also provided with an interactive view of your persistent classes and their relationships. The console allows you to execute HQL queries against your database and browse the result directly in Eclipse."
msgstr "<emphasis>Console: Console 是 Eclipse çš„ä¸€ä¸ªæ–°è§†å›¾ã€‚é™¤äº†å¯¹ä½ çš„ console é…ç½®çš„æ ‘çŠ¶æ¦‚è§ˆï¼Œä½ è¿˜å¯ä»¥èŽ·å¾—å¯¹ä½ æŒä¹…化类åŠå…¶å…³è”的交互å¼è§†å›¾ã€‚Console å…è®¸ä½ å¯¹æ•°æ®åº“执行 HQL 查询,并直接在 Eclipse ä¸æµè§ˆç»“果。 "
#. Tag: para
#, no-c-format
msgid "<emphasis>Development Wizards: several wizards are provided with the Hibernate Eclipse tools. You can use a wizard to quickly generate Hibernate configuration (cfg.xml) files, or to reverse engineer an existing database schema into POJO source files and Hibernate mapping files. The reverse engineering wizard supports customizable templates."
msgstr "<emphasis>Development Wizards: 在 Hibernate Eclipse tools ä¸è¿˜æä¾›äº†å‡ ä¸ªå‘å¯¼ï¼›ä½ å¯ä»¥ç”¨å‘å¯¼å¿«é€Ÿç”Ÿæˆ Hibernate é…置文件(cfg.xmlï¼‰ï¼Œä½ ç”šè‡³è¿˜å¯ä»¥åŒçŽ°å˜çš„æ•°æ®åº“ schema ä¸åå‘工程出 POJO æºä»£ç 与 Hibernate æ˜ å°„æ–‡ä»¶ã€‚åå‘工程支æŒå¯å®šåˆ¶çš„模版。 "
#. Tag: para
#, no-c-format
msgid "Please refer to the <emphasis>Hibernate Tools package documentation for more information."
msgstr "è¦å¾—到更多信æ¯ï¼Œè¯·æŸ¥é˜… <emphasis>Hibernate Tools 包åŠå…¶æ–‡æ¡£ã€‚ "
#. Tag: para
#, no-c-format
msgid "However, the Hibernate main package comes bundled with an integrated tool : <emphasis>SchemaExport aka hbm2ddl.It can even be used from \"inside\" Hibernate."
msgstr "åŒæ—¶ï¼ŒHibernate 主å‘行包还附带了一个集æˆçš„工具(它甚至å¯ä»¥åœ¨ Hibernate“内部â€å¿«é€Ÿè¿è¡Œï¼‰<emphasis>SchemaExport ,也就是 hbm2ddl。 "
#. Tag: title
#, no-c-format
msgid "Automatic schema generation"
msgstr "Schema 自动生æˆï¼ˆAutomatic schema generation)"
#. Tag: para
#, no-c-format
msgid "DDL can be generated from your mapping files by a Hibernate utility. The generated schema includes referential integrity constraints, primary and foreign keys, for entity and collection tables. Tables and sequences are also created for mapped identifier generators."
msgstr "å¯ä»¥ä»Žä½ çš„æ˜ å°„æ–‡ä»¶ä½¿ç”¨ä¸€ä¸ª Hibernate å·¥å…·ç”Ÿæˆ DDL。生æˆçš„ schema 包å«æœ‰å¯¹å®žä½“和集åˆç±»è¡¨çš„完整性引用约æŸï¼ˆä¸»é”®å’Œå¤–键)。涉åŠåˆ°çš„æ ‡ç¤ºç¬¦ç”Ÿæˆå™¨æ‰€éœ€çš„表和 sequence 也会åŒæ—¶ç”Ÿæˆã€‚ "
#. Tag: para
#, no-c-format
msgid "You <emphasis>must specify a SQL Dialect via the hibernate.dialect property when using this tool, as DDL is highly vendor-specific."
msgstr "åœ¨ä½¿ç”¨è¿™ä¸ªå·¥å…·çš„æ—¶å€™ï¼Œä½ <emphasis>å¿…é¡» 通过 hibernate.dialet 属性指定一个 SQL 方言(Dialetï¼‰ï¼Œå› ä¸º DDL 是与供应商高度相关的。 "
#. Tag: para
#, no-c-format
msgid "First, you must customize your mapping files to improve the generated schema. The next section covers schema customization."
msgstr "首先,è¦å®šåˆ¶ä½ çš„æ˜ å°„æ–‡ä»¶ï¼Œæ¥æ”¹å–„生æˆçš„ schemaã€‚ä¸‹ç« å°†æ¶µç›– schema 定制。"
#. Tag: title
#, no-c-format
msgid "Customizing the schema"
msgstr "对 schema 定制化(Customizing the schema)"
#. Tag: para
#, no-c-format
msgid "Many Hibernate mapping elements define optional attributes named <literal>length, precision and scale. You can set the length, precision and scale of a column with this attribute."
msgstr "很多 Hibernate æ˜ å°„å…ƒç´ å®šä¹‰äº†å¯é€‰çš„ <literal>lengthã€precision 或者 scale å±žæ€§ã€‚ä½ å¯ä»¥é€šè¿‡è¿™ä¸ªå±žæ€§è®¾ç½®å—段的长度ã€ç²¾åº¦ã€å°æ•°ç‚¹ä½æ•°ã€‚ "
#. Tag: para
#, no-c-format
msgid "Some tags also accept a <literal>not-null attribute for generating a NOT NULL constraint on table columns, and a unique attribute for generating UNIQUE constraint on table columns."
msgstr "有些 tag è¿˜æŽ¥å— <literal>not-null 属性(用æ¥åœ¨è¡¨å—æ®µä¸Šç”Ÿæˆ NOT NULL 约æŸï¼‰å’Œ unique 属性(用æ¥åœ¨è¡¨å—æ®µä¸Šç”Ÿæˆ UNIQUE 约æŸï¼‰ã€‚ "
#. Tag: para
#, no-c-format
msgid "A <literal>unique-key attribute can be used to group columns in a single, unique key constraint. Currently, the specified value of the unique-key attribute is not used to name the constraint in the generated DDL. It is only used to group the columns in the mapping file."
msgstr "<literal>unique-key 属性å¯ä»¥å¯¹æˆç»„çš„å—段指定一个唯一键约æŸï¼ˆunique key constraint)。目å‰ï¼Œunique-key å±žæ€§æŒ‡å®šçš„å€¼åœ¨ç”Ÿæˆ DDL 时并ä¸ä¼šè¢«å½“作这个约æŸçš„åå—,它们åªæ˜¯åœ¨ç”¨æ¥åœ¨æ˜ 射文件内部用作区分的。 "
#. Tag: para
#, no-c-format
msgid "An <literal>index attribute specifies the name of an index that will be created using the mapped column or columns. Multiple columns can be grouped into the same index by simply specifying the same index name."
msgstr "<literal>index 属性会用对应的å—段(一个或多个)生æˆä¸€ä¸ª index,它指出了这个 index çš„åå—。如果多个å—段对应的 index åå—相åŒï¼Œå°±ä¼šç”ŸæˆåŒ…å«è¿™äº›å—段的 index。 "
#. Tag: para
#, no-c-format
msgid "A <literal>foreign-key attribute can be used to override the name of any generated foreign key constraint."
msgstr "<literal>foreign-key 属性å¯ä»¥ç”¨æ¥è¦†ç›–任何生æˆçš„外键约æŸçš„åå—。 "
#. Tag: para
#, no-c-format
msgid "Many mapping elements also accept a child <literal><column> element. This is particularly useful for mapping multi-column types:"
msgstr "å¾ˆå¤šæ˜ å°„å…ƒç´ è¿˜æŽ¥å— <literal><column> åå…ƒç´ ã€‚è¿™åœ¨å®šä¹‰è·¨è¶Šå¤šå—段的类型时特别有用。"
#. Tag: para
#, no-c-format
msgid "The <literal>default attribute allows you to specify a default value for a column.You should assign the same value to the mapped property before saving a new instance of the mapped class."
msgstr "<literal>default 属性为å—段指定一个默认值(在ä¿å˜è¢«æ˜ 射的类的新实例之å‰ï¼Œä½ 应该将åŒæ ·çš„值赋于对应的属性)。"
#. Tag: para
#, no-c-format
msgid "The <literal>sql-type attribute allows the user to override the default mapping of a Hibernate type to SQL datatype."
msgstr "<literal>sql-type 属性å…许用户覆盖默认的 Hibernate 类型到 SQL æ•°æ®ç±»åž‹çš„æ˜ å°„ã€‚"
#. Tag: para
#, no-c-format
msgid "The <literal>check attribute allows you to specify a check constraint."
msgstr "<literal>check 属性å…许用户指定一个约æŸæ£€æŸ¥ã€‚"
#. Tag: para
#, no-c-format
msgid "The following table summarizes these optional attributes."
msgstr "下表总结了这些å¯é€‰å±žæ€§ï¼š"
#. Tag: title
#, no-c-format
msgid "Summary"
msgstr "总结"
#. Tag: entry
#, no-c-format
msgid "Attribute"
msgstr "属性(Attribute)"
#. Tag: entry
#, no-c-format
msgid "Values"
msgstr "值(Values)"
#. Tag: entry
#, no-c-format
msgid "Interpretation"
msgstr "解释(Interpretation)"
#. Tag: entry
#, no-c-format
msgid "<literal>length"
msgstr "<literal>length"
#. Tag: entry
#, no-c-format
msgid "number"
msgstr "æ•°å—"
#. Tag: entry
#, no-c-format
msgid "column length"
msgstr "å—段长度"
#. Tag: entry
#, no-c-format
msgid "<literal>precision"
msgstr "<literal>precision"
#. Tag: entry
#, no-c-format
msgid "column decimal precision"
msgstr "精度(decimal precision)"
#. Tag: entry
#, no-c-format
msgid "<literal>scale"
msgstr "<literal>scale"
#. Tag: entry
#, no-c-format
msgid "column decimal scale"
msgstr "å°æ•°ç‚¹ä½æ•°ï¼ˆdecimal scale)"
#. Tag: entry
#, no-c-format
msgid "<literal>not-null"
msgstr "<literal>not-null"
#. Tag: entry
#, no-c-format
msgid "<literal>true|false"
msgstr "<literal>true|false"
#. Tag: entry
#, no-c-format
msgid "specifies that the column should be non-nullable"
msgstr "指明å—段是å¦åº”该是éžç©ºçš„ "
#. Tag: entry
#, no-c-format
msgid "<literal>unique"
msgstr "<literal>unique"
#. Tag: entry
#, no-c-format
msgid "specifies that the column should have a unique constraint"
msgstr "指明是å¦è¯¥å—段具有惟一约æŸ"
#. Tag: entry
#, no-c-format
msgid "<literal>index"
msgstr "<literal>index"
#. Tag: entry
#, no-c-format
msgid "<literal>index_name"
msgstr "<literal>index_name"
#. Tag: entry
#, no-c-format
msgid "specifies the name of a (multi-column) index"
msgstr "指明一个(多å—段)的索引(index)的åå—"
#. Tag: entry
#, no-c-format
msgid "<literal>unique-key"
msgstr "<literal>unique-key"
#. Tag: entry
#, no-c-format
msgid "<literal>unique_key_name"
msgstr "<literal>unique_key_name"
#. Tag: entry
#, no-c-format
msgid "specifies the name of a multi-column unique constraint"
msgstr "指明多å—段惟一约æŸçš„åå—(å‚è§ä¸Šé¢çš„说明)"
#. Tag: entry
#, no-c-format
msgid "<literal>foreign-key"
msgstr "<literal>foreign-key"
#. Tag: entry
#, no-c-format
msgid "<literal>foreign_key_name"
msgstr "<literal>foreign_key_name"
#. Tag: entry
#, no-c-format
msgid "specifies the name of the foreign key constraint generated for an association, for a <literal><one-to-one>, <many-to-one>, <key>, or <many-to-many> mapping element. Note that inverse=\"true\" sides will not be considered by SchemaExport."
msgstr "指明一个外键的åå—,它是为关è”生æˆçš„,或者是为 <literal><one-to-one>, <many-to-one>, <key>, or <many-to-many> æ˜ å°„å…ƒç´ ã€‚æ³¨æ„ inverse=\"true\" 会被 SchemaExport 忽略。"
#. Tag: entry
#, no-c-format
msgid "<literal>sql-type"
msgstr "<literal>sql-type"
#. Tag: entry
#, no-c-format
msgid "<literal>SQL column type"
msgstr "<literal>SQL column type"
#. Tag: entry
#, no-c-format
msgid "overrides the default column type (attribute of <literal><column> element only)"
msgstr "覆盖默认的å—段类型(åªèƒ½ç”¨äºŽ <literal><column> 属性)"
#. Tag: entry
#, no-c-format
msgid "<literal>default"
msgstr "<literal>default"
#. Tag: entry
#, no-c-format
msgid "SQL expression"
msgstr "SQL 表达å¼"
#. Tag: entry
#, no-c-format
msgid "specify a default value for the column"
msgstr "为å—段指定默认值"
#. Tag: entry
#, no-c-format
msgid "<literal>check"
msgstr "<literal>check"
#. Tag: entry
#, no-c-format
msgid "create an SQL check constraint on either column or table"
msgstr "对å—æ®µæˆ–è¡¨åŠ å…¥ SQL 约æŸæ£€æŸ¥"
#. Tag: para
#, no-c-format
msgid "The <literal><comment> element allows you to specify comments for the generated schema."
msgstr "<literal><comment> å…ƒç´ å¯ä»¥è®©ä½ 在生æˆçš„ schema ä¸åŠ 入注释。"
#. Tag: para
#, no-c-format
msgid "This results in a <literal>comment on table or comment on column statement in the generated DDL where supported."
msgstr "结果是在生æˆçš„ DDL ä¸åŒ…å« <literal>comment on table 或者 comment on column è¯å¥ï¼ˆå‡è‹¥æ”¯æŒçš„è¯ï¼‰ã€‚ "
#. Tag: title
#, no-c-format
msgid "Running the tool"
msgstr "è¿è¡Œè¯¥å·¥å…·"
#. Tag: para
#, no-c-format
msgid "The <literal>SchemaExport tool writes a DDL script to standard out and/or executes the DDL statements."
msgstr "<literal>SchemaExport 工具把 DDL è„šæœ¬å†™åˆ°æ ‡å‡†è¾“å‡ºï¼ŒåŒæ—¶/或者执行 DDL è¯å¥ã€‚"
#. Tag: para
#, no-c-format
msgid "The following table displays the <literal>SchemaExport command line options"
msgstr "下表显示了 <literal>SchemaExport 命令行选项"
#. Tag: para
#, no-c-format
msgid "<literal>java -cp hibernate_classpaths org.hibernate.tool.hbm2ddl.SchemaExport options mapping_files"
msgstr "<literal>java -cp hibernate_classpaths org.hibernate.tool.hbm2ddl.SchemaExport options mapping_files"
#. Tag: title
#, no-c-format
msgid "<literal>SchemaExport Command Line Options"
msgstr "<literal>SchemaExport 命令行选项"
#. Tag: entry
#, no-c-format
msgid "Option"
msgstr "选项"
#. Tag: entry
#, no-c-format
msgid "Description"
msgstr "æè¿°"
#. Tag: entry
#, no-c-format
msgid "<literal>--quiet"
msgstr "<literal>--quiet"
#. Tag: entry
#, no-c-format
msgid "do not output the script to stdout"
msgstr "ä¸è¦æŠŠè„šæœ¬è¾“出到 stdout "
#. Tag: entry
#, no-c-format
msgid "<literal>--drop"
msgstr "<literal>--drop"
#. Tag: entry
#, no-c-format
msgid "only drop the tables"
msgstr "åªè¿›è¡Œ drop tables çš„æ¥éª¤"
#. Tag: entry
#, no-c-format
msgid "<literal>--create"
msgstr "<literal>--create"
#. Tag: entry
#, no-c-format
msgid "only create the tables"
msgstr "åªåˆ›å»ºè¡¨"
#. Tag: entry
#, no-c-format
msgid "<literal>--text"
msgstr "<literal>--text"
#. Tag: entry
#, no-c-format
msgid "do not export to the database"
msgstr "ä¸æ‰§è¡Œåœ¨æ•°æ®åº“ä¸è¿è¡Œçš„æ¥éª¤ "
#. Tag: entry
#, no-c-format
msgid "<literal>--output=my_schema.ddl"
msgstr "<literal>--output=my_schema.ddl"
#. Tag: entry
#, no-c-format
msgid "output the ddl script to a file"
msgstr "把输出的 ddl 脚本输出到一个文件"
#. Tag: entry
#, no-c-format
msgid "<literal>--naming=eg.MyNamingStrategy"
msgstr "<literal>--naming=eg.MyNamingStrategy "
#. Tag: entry
#, no-c-format
msgid "select a <literal>NamingStrategy"
msgstr "选择 <literal>NamingStrategy"
#. Tag: entry
#, no-c-format
msgid "<literal>--config=hibernate.cfg.xml"
msgstr "<literal>--config=hibernate.cfg.xml"
#. Tag: entry
#, no-c-format
msgid "read Hibernate configuration from an XML file"
msgstr "从 XML 文件读入 Hibernate é…ç½®"
#. Tag: entry
#, no-c-format
msgid "<literal>--properties=hibernate.properties"
msgstr "<literal>--properties=hibernate.properties"
#. Tag: entry
#, no-c-format
msgid "read database properties from a file"
msgstr "从文件读入数æ®åº“属性"
#. Tag: entry
#, no-c-format
msgid "<literal>--format"
msgstr "<literal>--format"
#. Tag: entry
#, no-c-format
msgid "format the generated SQL nicely in the script"
msgstr "把脚本ä¸çš„ SQL è¯å¥å¯¹é½å’Œç¾ŽåŒ–"
#. Tag: entry
#, no-c-format
msgid "<literal>--delimiter=;"
msgstr "<literal>--delimiter=;"
#. Tag: entry
#, no-c-format
msgid "set an end of line delimiter for the script"
msgstr "为脚本设置行结æŸç¬¦"
#. Tag: para
#, no-c-format
msgid "You can even embed <literal>SchemaExport in your application:"
msgstr "ä½ ç”šè‡³å¯ä»¥åœ¨ä½ 的应用程åºä¸åµŒå…¥ <literal>SchemaExport 工具: "
#. Tag: title
#, no-c-format
msgid "Properties"
msgstr "属性(Properties)"
#. Tag: para
#, no-c-format
msgid "Database properties can be specified:"
msgstr "å¯ä»¥é€šè¿‡å¦‚下方å¼æŒ‡å®šæ•°æ®åº“属性: "
#. Tag: para
#, no-c-format
msgid "as system properties with <literal>-D<property>"
msgstr "通过 <literal>-D<property> 系统å‚æ•°"
#. Tag: para
#, no-c-format
msgid "in <literal>hibernate.properties"
msgstr "在 <literal>hibernate.properties 文件ä¸"
#. Tag: para
#, no-c-format
msgid "in a named properties file with <literal>--properties"
msgstr "ä½äºŽä¸€ä¸ªå…¶å®ƒåå—çš„ properties 文件ä¸,然åŽç”¨ <literal>--properties å‚数指定"
#. Tag: para
#, no-c-format
msgid "The needed properties are:"
msgstr "所需的å‚数包括:"
#. Tag: title
#, no-c-format
msgid "SchemaExport Connection Properties"
msgstr "SchemaExport 连接属性"
#. Tag: entry
#, no-c-format
msgid "Property Name"
msgstr "属性å"
#. Tag: entry
#, no-c-format
msgid "<literal>hibernate.connection.driver_class"
msgstr "<literal>hibernate.connection.driver_class"
#. Tag: entry
#, no-c-format
msgid "jdbc driver class"
msgstr "jdbc driver class"
#. Tag: entry
#, no-c-format
msgid "<literal>hibernate.connection.url"
msgstr "<literal>hibernate.connection.url"
#. Tag: entry
#, no-c-format
msgid "jdbc url"
msgstr "jdbc url"
#. Tag: entry
#, no-c-format
msgid "<literal>hibernate.connection.username"
msgstr "<literal>hibernate.connection.username"
#. Tag: entry
#, no-c-format
msgid "database user"
msgstr "database user"
#. Tag: entry
#, no-c-format
msgid "<literal>hibernate.connection.password"
msgstr "<literal>hibernate.connection.password"
#. Tag: entry
#, no-c-format
msgid "user password"
msgstr "user password"
#. Tag: entry
#, no-c-format
msgid "<literal>hibernate.dialect"
msgstr "<literal>hibernate.dialect"
#. Tag: entry
#, no-c-format
msgid "dialect"
msgstr "方言(dialect)"
#. Tag: title
#, no-c-format
msgid "Using Ant"
msgstr "使用 Ant(Using Ant)"
#. Tag: para
#, no-c-format
msgid "You can call <literal>SchemaExport from your Ant build script:"
msgstr "ä½ å¯ä»¥åœ¨ä½ çš„ Ant build 脚本ä¸è°ƒç”¨ <literal>SchemaExport:"
#. Tag: title
#, no-c-format
msgid "Incremental schema updates"
msgstr "对 schema 的增é‡æ›´æ–°ï¼ˆIncremental schema updates)"
#. Tag: para
#, no-c-format
msgid "The <literal>SchemaUpdate tool will update an existing schema with \"incremental\" changes. The SchemaUpdate depends upon the JDBC metadata API and, as such, will not work with all JDBC drivers."
msgstr "<literal>SchemaUpdate 工具对已å˜åœ¨çš„ schema 采用\"增é‡\"æ–¹å¼è¿›è¡Œæ›´æ–°ã€‚æ³¨æ„ SchemaUpdate 严é‡ä¾èµ–于 JDBC metadata API,所以它并éžå¯¹æ‰€æœ‰ JDBC 驱动都有效。 "
#. Tag: para
#, no-c-format
msgid "<literal>java -cp hibernate_classpaths org.hibernate.tool.hbm2ddl.SchemaUpdate options mapping_files"
msgstr "<literal>java -cp hibernate_classpaths org.hibernate.tool.hbm2ddl.SchemaUpdate options mapping_files"
#. Tag: title
#, no-c-format
msgid "<literal>SchemaUpdate Command Line Options"
msgstr "<literal>SchemaUpdate 命令行选项"
#. Tag: entry
#, no-c-format
msgid "do not export the script to the database"
msgstr "ä¸æŠŠè„šæœ¬è¾“出到数æ®åº“ "
#. Tag: entry
#, no-c-format
msgid "specify a <literal>.cfg.xml file"
msgstr "指定一个 <literal>.cfg.xml 文件"
#. Tag: para
#, no-c-format
msgid "You can embed <literal>SchemaUpdate in your application:"
msgstr "ä½ å¯ä»¥åœ¨ä½ 的应用程åºä¸åµŒå…¥ <literal>SchemaUpdate 工具: "
#. Tag: title
#, no-c-format
msgid "Using Ant for incremental schema updates"
msgstr "用 Ant æ¥å¢žé‡æ›´æ–° schema(Using Ant for incremental schema updates)"
#. Tag: para
#, no-c-format
msgid "You can call <literal>SchemaUpdate from the Ant script:"
msgstr "ä½ å¯ä»¥åœ¨ Ant 脚本ä¸è°ƒç”¨ <literal>SchemaUpdate:"
#. Tag: title
#, no-c-format
msgid "Schema validation"
msgstr "Schema æ ¡éªŒ"
#. Tag: para
#, no-c-format
msgid "The <literal>SchemaValidator tool will validate that the existing database schema \"matches\" your mapping documents. The SchemaValidator depends heavily upon the JDBC metadata API and, as such, will not work with all JDBC drivers. This tool is extremely useful for testing."
msgstr "<literal>SchemaValidator 工具会比较数æ®åº“现状是å¦ä¸Žæ˜ 射文档“匹é…â€ã€‚注æ„,SchemaValidator 严é‡ä¾èµ–于 JDBC çš„ metadata APIï¼Œå› æ¤ä¸æ˜¯å¯¹æ‰€æœ‰çš„ JDBC 驱动都适用。这一工具在测试的时候特别有用。 "
#. Tag: para
#, no-c-format
msgid "<literal>java -cp hibernate_classpaths org.hibernate.tool.hbm2ddl.SchemaValidator options mapping_files"
msgstr "<literal>java -cp hibernate_classpaths org.hibernate.tool.hbm2ddl.SchemaValidator options mapping_files"
#. Tag: para
#, no-c-format
msgid "The following table displays the <literal>SchemaValidator command line options:"
msgstr "下表显示了 <literal>SchemaValidator 命令行å‚数:"
#. Tag: title
#, no-c-format
msgid "<literal>SchemaValidator Command Line Options"
msgstr "<literal>SchemaValidator 命令行å‚æ•°"
#. Tag: para
#, no-c-format
msgid "You can embed <literal>SchemaValidator in your application:"
msgstr "ä½ å¯ä»¥åœ¨ä½ 的应用程åºä¸åµŒå…¥ <literal>SchemaValidator: "
#. Tag: title
#, no-c-format
msgid "Using Ant for schema validation"
msgstr "使用 Ant 进行 schema æ ¡éªŒ"
#. Tag: para
#, no-c-format
msgid "You can call <literal>SchemaValidator from the Ant script:"
msgstr "ä½ å¯ä»¥åœ¨ Ant 脚本ä¸è°ƒç”¨ <literal>SchemaValidator:"
#, fuzzy
#~ msgid "<![CDATA["
#~ msgstr "<property name=\"zip\" length=\"5\"/>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr "<property name=\"balance\" precision=\"12\" scale=\"2\"/>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[]]">"
#~ msgstr ""
#~ "<element column=\"serialNumber\" type=\"long\" not-null=\"true\" "
#~ "unique=\"true\"/>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<many-to-one name=\"org\" column=\"orgId\" unique-key=\"OrgEmployeeId"
#~ "\"/>\n"
#~ "<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<property name=\"lastName\" index=\"CustName\"/>\n"
#~ "<property name=\"firstName\" index=\"CustName\"/>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar\"/"
#~ ">"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<property name=\"name\" type=\"my.customtypes.Name\"/>\n"
#~ " <column name=\"last\" not-null=\"true\" index=\"bar_idx\" length="
#~ "\"30\"/>\n"
#~ " <column name=\"first\" not-null=\"true\" index=\"bar_idx\" length="
#~ "\"20\"/>\n"
#~ " <column name=\"initial\"/>\n"
#~ "</property>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<property name=\"credits\" type=\"integer\" insert=\"false\">\n"
#~ " <column name=\"credits\" default=\"10\"/>\n"
#~ "</property>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<version name=\"version\" type=\"integer\" insert=\"false\">\n"
#~ " <column name=\"version\" default=\"0\"/>\n"
#~ "</property>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<property name=\"balance\" type=\"float\">\n"
#~ " <column name=\"balance\" sql-type=\"decimal(13,3)\"/>\n"
#~ "</property>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[\n"
#~ "</property>]]>"
#~ msgstr ""
#~ "<property name=\"foo\" type=\"integer\">\n"
#~ " <column name=\"foo\" check=\"foo > 10\"/>\n"
#~ "</property>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n"
#~ " ...\n"
#~ " <property name=\"bar\" type=\"float\"/>\n"
#~ "</class>"
#~ msgid "length"
#~ msgstr "length"
#~ msgid "precision"
#~ msgstr "precision"
#~ msgid "scale"
#~ msgstr "scale"
#~ msgid "not-null"
#~ msgstr "not-null"
#~ msgid "true|false"
#~ msgstr "true|false"
#~ msgid "unique"
#~ msgstr "unique"
#~ msgid "index"
#~ msgstr "index"
#~ msgid "index_name"
#~ msgstr "index_name"
#~ msgid "unique-key"
#~ msgstr "unique-key"
#~ msgid "unique_key_name"
#~ msgstr "unique_key_name"
#~ msgid "foreign-key"
#~ msgstr "foreign-key"
#, fuzzy
#~ msgid "foreign_key_name"
#~ msgstr "foreign-key"
#~ msgid "sql-type"
#~ msgstr "sql-type"
#, fuzzy
#~ msgid "SQL column type"
#~ msgstr "<literal>SQL column type"
#~ msgid "default"
#~ msgstr "default"
#~ msgid "check"
#~ msgstr "check"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[\n"
#~ " ...\n"
#~ "</class>]]>"
#~ msgstr ""
#~ "<class name=\"Customer\" table=\"CurCust\">\n"
#~ " <comment>Current customers only</comment>\n"
#~ " ...\n"
#~ "</class>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[\n"
#~ " </column>\n"
#~ "</property>]]>"
#~ msgstr ""
#~ "<property name=\"balance\">\n"
#~ " <column name=\"bal\">\n"
#~ " <comment>Balance in USD</comment>\n"
#~ " </column>\n"
#~ "</property>"
#~ msgid "--quiet"
#~ msgstr "--quiet"
#~ msgid "--drop"
#~ msgstr "--drop"
#~ msgid "--create"
#~ msgstr "--create"
#~ msgid "--text"
#~ msgstr "--text"
#, fuzzy
#~ msgid "--output=my_schema.ddl"
#~ msgstr "<literal>--output=my_schema.ddl"
#, fuzzy
#~ msgid "--config=hibernate.cfg.xml"
#~ msgstr "<literal>--config=hibernate.cfg.xml"
#~ msgid "--properties=hibernate.properties"
#~ msgstr "--properties=hibernate.properties"
#~ msgid "--format"
#~ msgstr "--format"
#~ msgid "--delimiter=;"
#~ msgstr "--delimiter=;"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[Configuration cfg = ....;\n"
#~ "new SchemaExport(cfg).create(false, true);]]>"
#~ msgstr ""
#~ "Configuration cfg = ....;\n"
#~ "new SchemaExport(cfg).create(false, true);"
#, fuzzy
#~ msgid "hibernate.connection.driver_class"
#~ msgstr "hibernate.connection.url"
#~ msgid "hibernate.connection.url"
#~ msgstr "hibernate.connection.url"
#~ msgid "hibernate.connection.username"
#~ msgstr "hibernate.connection.username"
#~ msgid "hibernate.connection.password"
#~ msgstr "hibernate.connection.password"
#~ msgid "hibernate.dialect"
#~ msgstr "hibernate.dialect"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<target name=\"schemaexport\">\n"
#~ " <taskdef name=\"schemaexport\"\n"
#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaExportTask\"\n"
#~ " classpathref=\"class.path\"/>\n"
#~ " \n"
#~ " <schemaexport\n"
#~ " properties=\"hibernate.properties\"\n"
#~ " quiet=\"no\"\n"
#~ " text=\"no\"\n"
#~ " drop=\"no\"\n"
#~ " delimiter=\";\"\n"
#~ " output=\"schema-export.sql\">\n"
#~ " <fileset dir=\"src\">\n"
#~ " <include name=\"**/*.hbm.xml\"/>\n"
#~ " </fileset>\n"
#~ " </schemaexport>\n"
#~ "</target>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[Configuration cfg = ....;\n"
#~ "new SchemaUpdate(cfg).execute(false);]]>"
#~ msgstr ""
#~ "Configuration cfg = ....;\n"
#~ "new SchemaUpdate(cfg).execute(false);"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<target name=\"schemaupdate\">\n"
#~ " <taskdef name=\"schemaupdate\"\n"
#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaUpdateTask\"\n"
#~ " classpathref=\"class.path\"/>\n"
#~ " \n"
#~ " <schemaupdate\n"
#~ " properties=\"hibernate.properties\"\n"
#~ " quiet=\"no\">\n"
#~ " <fileset dir=\"src\">\n"
#~ " <include name=\"**/*.hbm.xml\"/>\n"
#~ " </fileset>\n"
#~ " </schemaupdate>\n"
#~ "</target>"
#, fuzzy
#~ msgid ""
#~ "<![CDATA[Configuration cfg = ....;\n"
#~ "new SchemaValidator(cfg).validate();]]>"
#~ msgstr ""
#~ "Configuration cfg = ....;\n"
#~ "new SchemaValidator(cfg).validate();"
#, fuzzy
#~ msgid ""
#~ "<![CDATA["
#~ msgstr ""
#~ "<target name=\"schemavalidate\">\n"
#~ " <taskdef name=\"schemavalidator\"\n"
#~ " classname=\"org.hibernate.tool.hbm2ddl.SchemaValidatorTask\"\n"
#~ " classpathref=\"class.path\"/>\n"
#~ " \n"
#~ " <schemavalidator\n"
#~ " properties=\"hibernate.properties\">\n"
#~ " <fileset dir=\"src\">\n"
#~ " <include name=\"**/*.hbm.xml\"/>\n"
#~ " </fileset>\n"
#~ " </schemaupdate>\n"
#~ "</target>"
#~ msgid "<!-- -->"
#~ msgstr "<!-- -->"
Other Hibernate examples (source code examples)
Here is a short list of links related to this Hibernate toolset_guide.po source code file:
|