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

📄 toolset_guide.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 3 页
字号:
msgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""Report-Msgid-Bugs-To: http://bugs.kde.org\n""POT-Creation-Date: 2007-10-25 01:01+0000\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <LL@li.org>\n""MIME-Version: 1.0\n""Content-Type: text/plain; charset=UTF-8\n""Content-Transfer-Encoding: 8bit\n"#. Tag: title#: toolset_guide.xml:5#, no-c-formatmsgid "Toolset Guide"msgstr "工具箱指南"#. Tag: para#: toolset_guide.xml:7#, no-c-formatmsgid """Roundtrip engineering with Hibernate is possible using a set of Eclipse ""plugins, commandline tools, as well as Ant tasks."msgstr """可以通过一系列Eclipse插件、命令行工具和Ant任务来进行与Hibernate关联的转换。"#. Tag: para#: toolset_guide.xml:12#, no-c-formatmsgid """The <emphasis>Hibernate Tools</emphasis> currently include plugins for the ""Eclipse IDE as well as Ant tasks for reverse engineering of existing ""databases:"msgstr """除了Ant任务外,当前的<emphasis>Hibernate Tools</emphasis>也包含了Eclipse IDE""的插件,用于与现存数据库的逆向工程。"#. Tag: para#: toolset_guide.xml:18#, no-c-formatmsgid """<emphasis>Mapping Editor:</emphasis> An editor for Hibernate XML mapping ""files, supporting auto-completion and syntax highlighting. It also supports ""semantic auto-completion for class names and property/field names, making it ""much more versatile than a normal XML editor."msgstr """<emphasis>Mapping Editor:</emphasis> Hibernate XML映射文件的编辑器,支持自动""完成和语法高亮。它也支持对类名和属性/字段名的语义自动完成,比通常的XML编辑器""方便得多。"#. Tag: para#: toolset_guide.xml:23#, no-c-formatmsgid """<emphasis>Console:</emphasis> The console is a new view in Eclipse. In ""addition to a tree overview of your console configurations, you also get 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:</emphasis> Console是Eclipse的一个新视图。除了对你的console""配置的树状概览,你还可以获得对你持久化类及其关联的交互式视图。Console允许你对""数据库执行HQL查询,并直接在Eclipse中浏览结果。"#. Tag: para#: toolset_guide.xml:30#, no-c-formatmsgid """<emphasis>Development Wizards:</emphasis> Several wizards are provided with ""the Hibernate Eclipse tools; you can use a wizard to quickly generate ""Hibernate configuration (cfg.xml) files, or you may even completely 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:</emphasis> 在Hibernate Eclipse tools中还提供了""几个向导;你可以用向导快速生成Hibernate 配置文件(cfg.xml),你甚至还可以同现""存的数据库schema中反向工程出POJO源代码与Hibernate 映射文件。反向工程支持可定""制的模版。"#. Tag: emphasis#: toolset_guide.xml:38#, no-c-formatmsgid "Ant Tasks:"msgstr "Ant Tasks:"#. Tag: para#: toolset_guide.xml:43#, no-c-formatmsgid """Please refer to the <emphasis>Hibernate Tools</emphasis> package and it's ""documentation for more information."msgstr """要得到更多信息,请查阅 <emphasis>Hibernate Tools</emphasis> 包及其文档。"#. Tag: para#: toolset_guide.xml:48#, no-c-formatmsgid """However, the Hibernate main package comes bundled with an integrated tool ""(it can even be used from \"inside\" Hibernate on-the-fly): ""<emphasis>SchemaExport</emphasis> aka <literal>hbm2ddl</literal>."msgstr """同时,Hibernate主发行包还附带了一个集成的工具(它甚至可以在Hibernate“内部”快""速运行)<emphasis>SchemaExport</emphasis> ,也就是 <literal>hbm2ddl</""literal>。"#. Tag: title#: toolset_guide.xml:55#, no-c-formatmsgid "Automatic schema generation"msgstr "Schema自动生成(Automatic schema generation)"#. Tag: para#: toolset_guide.xml:57#, no-c-formatmsgid """DDL may 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#: toolset_guide.xml:64#, no-c-formatmsgid """You <emphasis>must</emphasis> specify a SQL <literal>Dialect</literal> via ""the <literal>hibernate.dialect</literal> property when using this tool, as ""DDL is highly vendor specific."msgstr """在使用这个工具的时候,你<emphasis>必须</emphasis> 通过<literal>hibernate.""dialet</literal>属性指定一个SQL<literal>方言(Dialet)</literal>,因为DDL是与供""应商高度相关的。"#. Tag: para#: toolset_guide.xml:70#, no-c-formatmsgid "First, customize your mapping files to improve the generated schema."msgstr "首先,要定制你的映射文件,来改善生成的schema。"#. Tag: title#: toolset_guide.xml:75#, no-c-formatmsgid "Customizing the schema"msgstr "对schema定制化(Customizing the schema)"#. Tag: para#: toolset_guide.xml:77#, no-c-formatmsgid """Many Hibernate mapping elements define optional attributes named ""<literal>length</literal>, <literal>precision</literal> and <literal>scale</""literal>. You may set the length, precision and scale of a column with this ""attribute."msgstr """很多Hibernate映射元素定义了可选的<literal>length</literal>、""<literal>precision</literal> 或者 <literal>scale</literal>属性。你可以通过这""个属性设置字段的长度、精度、小数点位数。"#. Tag: programlisting#: toolset_guide.xml:84#, no-c-formatmsgid "<![CDATA[<property name=\"zip\" length=\"5\"/>]]>"msgstr ""#. Tag: programlisting#: toolset_guide.xml:85#, no-c-formatmsgid "<![CDATA[<property name=\"balance\" precision=\"12\" scale=\"2\"/>]]>"msgstr ""#. Tag: para#: toolset_guide.xml:87#, no-c-formatmsgid """Some tags also accept a <literal>not-null</literal> attribute (for ""generating a <literal>NOT NULL</literal> constraint on table columns) and a ""<literal>unique</literal> attribute (for generating <literal>UNIQUE</""literal> constraint on table columns)."msgstr """有些tag还接受<literal>not-null</literal>属性(用来在表字段上生成<literal>NOT ""NULL</literal>约束)和<literal>unique</literal>属性(用来在表字段上生成""<literal>UNIQUE</literal>约束)。"#. Tag: programlisting#: toolset_guide.xml:93#, no-c-formatmsgid """<![CDATA[<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>]]>"msgstr ""#. Tag: programlisting#: toolset_guide.xml:95#, no-c-formatmsgid """<![CDATA[<element column=\"serialNumber\" type=\"long\" not-null=\"true\" ""unique=\"true\"/>]]>"msgstr ""#. Tag: para#: toolset_guide.xml:97#, no-c-formatmsgid """A <literal>unique-key</literal> attribute may be used to group columns in a ""single unique key constraint. Currently, the specified value of the ""<literal>unique-key</literal> attribute is <emphasis>not</emphasis> used to ""name the constraint in the generated DDL, only to group the columns in the ""mapping file."msgstr """<literal>unique-key</literal>属性可以对成组的字段指定一个唯一键约束(unique ""key constraint)。目前,<literal>unique-key</literal>属性指定的值在生成DDL时""<emphasis>并不会</emphasis>被当作这个约束的名字,它们只是在用来在映射文件内部""用作区分的。"#. Tag: programlisting#: toolset_guide.xml:105#, no-c-formatmsgid """<![CDATA[<many-to-one name=\"org\" column=\"orgId\" unique-key=""\"OrgEmployeeId\"/>\n""<property name=\"employeeId\" unique-key=\"OrgEmployee\"/>]]>"msgstr ""#. Tag: para#: toolset_guide.xml:107#, no-c-formatmsgid """An <literal>index</literal> attribute specifies the name of an index that ""will be created using the mapped column or columns. Multiple columns may be ""grouped into the same index, simply by specifying the same index name."msgstr """<literal>index</literal>属性会用对应的字段(一个或多个)生成一个index,它指出""了这个index的名字。如果多个字段对应的index名字相同,就会生成包含这些字段的""index。"#. Tag: programlisting#: toolset_guide.xml:113#, no-c-formatmsgid """<![CDATA[<property name=\"lastName\" index=\"CustName\"/>\n""<property name=\"firstName\" index=\"CustName\"/>]]>"msgstr ""#. Tag: para#: toolset_guide.xml:115#, no-c-formatmsgid """A <literal>foreign-key</literal> attribute may be used to override the name ""of any generated foreign key constraint."msgstr """<literal>foreign-key</literal>属性可以用来覆盖任何生成的外键约束的名字。"#. Tag: programlisting#: toolset_guide.xml:120#, no-c-formatmsgid """<![CDATA[<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar\"/"">]]>"msgstr ""#. Tag: para#: toolset_guide.xml:122#, no-c-formatmsgid """Many mapping elements also accept a child <literal>&lt;column&gt;</literal> ""element. This is particularly useful for mapping multi-column types:"msgstr """很多映射元素还接受<literal>&lt;column&gt;</literal>子元素。这在定义跨越多字段""的类型时特别有用。"#. Tag: programlisting#: toolset_guide.xml:127#, no-c-formatmsgid """<![CDATA[<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>]]>"msgstr ""#. Tag: para#: toolset_guide.xml:129#, no-c-formatmsgid """The <literal>default</literal> attribute lets you 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</literal>属性为字段指定一个默认值 (在保存被映射的类的新实例""之前,你应该将同样的值赋于对应的属性)。"#. Tag: programlisting#: toolset_guide.xml:135#, no-c-formatmsgid """<![CDATA[<property name=\"credits\" type=\"integer\" insert=\"false\">\n""    <column name=\"credits\" default=\"10\"/>\n""</property>]]>"msgstr ""#. Tag: programlisting#: toolset_guide.xml:137#, no-c-formatmsgid """<![CDATA[<version name=\"version\" type=\"integer\" insert=\"false\">\n""    <column name=\"version\" default=\"0\"/>\n""</property>]]>"msgstr ""#. Tag: para#: toolset_guide.xml:139#, no-c-formatmsgid """The <literal>sql-type</literal> attribute allows the user to override the ""default mapping of a Hibernate type to SQL datatype."msgstr """<literal>sql-type</literal>属性允许用户覆盖默认的Hibernate类型到SQL数据类型的""映射。"#. Tag: programlisting#: toolset_guide.xml:144#, no-c-formatmsgid """<![CDATA[<property name=\"balance\" type=\"float\">\n""    <column name=\"balance\" sql-type=\"decimal(13,3)\"/>\n""</property>]]>"msgstr ""#. Tag: para#: toolset_guide.xml:146#, no-c-formatmsgid """The <literal>check</literal> attribute allows you to specify a check ""constraint."msgstr "<literal>check</literal>属性允许用户指定一个约束检查。"#. Tag: programlisting#: toolset_guide.xml:150#, no-c-formatmsgid """<![CDATA[<property name=\"foo\" type=\"integer\">\n""    <column name=\"foo\" check=\"foo > 10\"/>\n""</property>]]>"msgstr ""#. Tag: programlisting#: toolset_guide.xml:152#, no-c-formatmsgid """<![CDATA[<class name=\"Foo\" table=\"foos\" check=\"bar < 100.0\">\n""    ...\n""    <property name=\"bar\" type=\"float\"/>\n""</class>]]>"msgstr ""#. Tag: title#: toolset_guide.xml:156#, no-c-formatmsgid "Summary"msgstr "Summary"#. Tag: entry#: toolset_guide.xml:163#, no-c-formatmsgid "Attribute"msgstr "属性(Attribute)"#. Tag: entry#: toolset_guide.xml:164#, no-c-formatmsgid "Values"msgstr "值(Values)"#. Tag: entry#: toolset_guide.xml:165#, no-c-formatmsgid "Interpretation"msgstr "解释(Interpretation)"#. Tag: literal#: toolset_guide.xml:170#, no-c-formatmsgid "length"msgstr "length"#. Tag: entry#: toolset_guide.xml:171 toolset_guide.xml:176 toolset_guide.xml:181

⌨️ 快捷键说明

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