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

📄 toolset_guide.pot

📁 hibernate-distribution-3.3.1.GA-dist.zip源码
💻 POT
📖 第 1 页 / 共 2 页
字号:
# SOME DESCRIPTIVE TITLE.# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.##, fuzzymsgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""Report-Msgid-Bugs-To: http://bugs.kde.org\n""POT-Creation-Date: 2008-08-14 15:28+0000\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <kde-i18n-doc@kde.org>\n""MIME-Version: 1.0\n""Content-Type: application/x-xml2pot; charset=UTF-8\n""Content-Transfer-Encoding: 8bit\n"#. Tag: title#: toolset_guide.xml:29#, no-c-formatmsgid "Toolset Guide"msgstr ""#. Tag: para#: toolset_guide.xml:31#, no-c-formatmsgid "Roundtrip engineering with Hibernate is possible using a set of Eclipse plugins, commandline tools, as well as Ant tasks."msgstr ""#. Tag: para#: toolset_guide.xml:36#, 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 ""#. Tag: para#: toolset_guide.xml:42#, 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 ""#. Tag: para#: toolset_guide.xml:47#, 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 ""#. Tag: para#: toolset_guide.xml:54#, 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 ""#. Tag: emphasis#: toolset_guide.xml:62#, no-c-formatmsgid "Ant Tasks:"msgstr ""#. Tag: para#: toolset_guide.xml:67#, no-c-formatmsgid "Please refer to the <emphasis>Hibernate Tools</emphasis> package and it's documentation for more information."msgstr ""#. Tag: para#: toolset_guide.xml:72#, 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 ""#. Tag: title#: toolset_guide.xml:79#, no-c-formatmsgid "Automatic schema generation"msgstr ""#. Tag: para#: toolset_guide.xml:81#, 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 ""#. Tag: para#: toolset_guide.xml:88#, 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 ""#. Tag: para#: toolset_guide.xml:94#, no-c-formatmsgid "First, customize your mapping files to improve the generated schema."msgstr ""#. Tag: title#: toolset_guide.xml:99#, no-c-formatmsgid "Customizing the schema"msgstr ""#. Tag: para#: toolset_guide.xml:101#, 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 ""#. Tag: programlisting#: toolset_guide.xml:108#, no-c-formatmsgid "<![CDATA[<property name=\"zip\" length=\"5\"/>]]>"msgstr ""#. Tag: programlisting#: toolset_guide.xml:109#, no-c-formatmsgid "<![CDATA[<property name=\"balance\" precision=\"12\" scale=\"2\"/>]]>"msgstr ""#. Tag: para#: toolset_guide.xml:111#, 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: programlisting#: toolset_guide.xml:117#, no-c-formatmsgid "<![CDATA[<many-to-one name=\"bar\" column=\"barId\" not-null=\"true\"/>]]>"msgstr ""#. Tag: programlisting#: toolset_guide.xml:119#, no-c-formatmsgid "<![CDATA[<element column=\"serialNumber\" type=\"long\" not-null=\"true\" unique=\"true\"/>]]>"msgstr ""#. Tag: para#: toolset_guide.xml:121#, 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 ""#. Tag: programlisting#: toolset_guide.xml:129#, 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:131#, 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 ""#. Tag: programlisting#: toolset_guide.xml:137#, no-c-formatmsgid ""      "<![CDATA[<property name=\"lastName\" index=\"CustName\"/>\n"      "<property name=\"firstName\" index=\"CustName\"/>]]>"msgstr ""#. Tag: para#: toolset_guide.xml:139#, no-c-formatmsgid "A <literal>foreign-key</literal> attribute may be used to override the name of any generated foreign key constraint."msgstr ""#. Tag: programlisting#: toolset_guide.xml:144#, no-c-formatmsgid "<![CDATA[<many-to-one name=\"bar\" column=\"barId\" foreign-key=\"FKFooBar\"/>]]>"msgstr ""#. Tag: para#: toolset_guide.xml:146#, 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 ""#. Tag: programlisting#: toolset_guide.xml:151#, 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:153#, 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 ""#. Tag: programlisting#: toolset_guide.xml:159#, 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:161#, 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:163#, 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 ""#. Tag: programlisting#: toolset_guide.xml:168#, 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:170#, no-c-formatmsgid "The <literal>check</literal> attribute allows you to specify a check constraint."msgstr ""#. Tag: programlisting#: toolset_guide.xml:174#, no-c-formatmsgid ""      "<![CDATA[<property name=\"foo\" type=\"integer\">\n"      "    <column name=\"foo\" check=\"foo > 10\"/>\n"      "</property>]]>"msgstr ""#. Tag: programlisting#: toolset_guide.xml:176#, 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:180#, no-c-formatmsgid "Summary"msgstr ""#. Tag: entry#: toolset_guide.xml:187#, no-c-formatmsgid "Attribute"msgstr ""#. Tag: entry#: toolset_guide.xml:188#, no-c-formatmsgid "Values"msgstr ""#. Tag: entry#: toolset_guide.xml:189#, no-c-formatmsgid "Interpretation"msgstr ""#. Tag: literal#: toolset_guide.xml:194#, no-c-formatmsgid "length"msgstr ""#. Tag: entry#: toolset_guide.xml:195 toolset_guide.xml:200 toolset_guide.xml:205#, no-c-formatmsgid "number"msgstr ""#. Tag: entry#: toolset_guide.xml:196#, no-c-formatmsgid "column length"msgstr ""#. Tag: literal#: toolset_guide.xml:199#, no-c-formatmsgid "precision"msgstr ""#. Tag: entry#: toolset_guide.xml:201#, no-c-formatmsgid "column decimal precision"msgstr ""#. Tag: literal#: toolset_guide.xml:204#, no-c-formatmsgid "scale"msgstr ""#. Tag: entry#: toolset_guide.xml:206#, no-c-formatmsgid "column decimal scale"msgstr ""#. Tag: literal#: toolset_guide.xml:209#, no-c-formatmsgid "not-null"msgstr ""#. Tag: literal#: toolset_guide.xml:210 toolset_guide.xml:215#, no-c-formatmsgid "true|false"msgstr ""#. Tag: entry#: toolset_guide.xml:211#, no-c-formatmsgid "specfies that the column should be non-nullable"msgstr ""#. Tag: literal#: toolset_guide.xml:214#, no-c-formatmsgid "unique"msgstr ""#. Tag: entry#: toolset_guide.xml:216#, no-c-formatmsgid "specifies that the column should have a unique constraint"msgstr ""#. Tag: literal#: toolset_guide.xml:219#, no-c-formatmsgid "index"msgstr ""#. Tag: literal#: toolset_guide.xml:220#, no-c-formatmsgid "index_name"msgstr ""#. Tag: entry#: toolset_guide.xml:221#, no-c-formatmsgid "specifies the name of a (multi-column) index"msgstr ""#. Tag: literal#: toolset_guide.xml:224#, no-c-formatmsgid "unique-key"msgstr ""#. Tag: literal#: toolset_guide.xml:225#, no-c-formatmsgid "unique_key_name"msgstr ""#. Tag: entry#: toolset_guide.xml:226#, no-c-formatmsgid "specifies the name of a multi-column unique constraint"msgstr ""#. Tag: literal#: toolset_guide.xml:229#, no-c-formatmsgid "foreign-key"msgstr ""#. Tag: literal#: toolset_guide.xml:230#, no-c-formatmsgid "foreign_key_name"msgstr ""#. Tag: entry#: toolset_guide.xml:231#, no-c-formatmsgid "specifies the name of the foreign key constraint generated for an association, for a <literal>&lt;one-to-one&gt;</literal>, <literal>&lt;many-to-one&gt;</literal>, <literal>&lt;key&gt;</literal>, or <literal>&lt;many-to-many&gt;</literal> mapping element. Note that <literal>inverse=\"true\"</literal> sides will not be considered by <literal>SchemaExport</literal>."msgstr ""#. Tag: literal#: toolset_guide.xml:241#, no-c-formatmsgid "sql-type"msgstr ""#. Tag: literal#: toolset_guide.xml:242#, no-c-formatmsgid "SQL column type"msgstr ""#. Tag: entry#: toolset_guide.xml:243#, no-c-formatmsgid "overrides the default column type (attribute of <literal>&lt;column&gt;</literal> element only)"msgstr ""#. Tag: literal#: toolset_guide.xml:249#, no-c-formatmsgid "default"msgstr ""#. Tag: entry#: toolset_guide.xml:250 toolset_guide.xml:257#, no-c-formatmsgid "SQL expression"msgstr ""#. Tag: entry#: toolset_guide.xml:251#, no-c-formatmsgid "specify a default value for the column"msgstr ""#. Tag: literal#: toolset_guide.xml:256#, no-c-formatmsgid "check"msgstr ""#. Tag: entry#: toolset_guide.xml:258#, no-c-formatmsgid "create an SQL check constraint on either column or table"msgstr ""#. Tag: para#: toolset_guide.xml:266#, no-c-formatmsgid "The <literal>&lt;comment&gt;</literal> element allows you to specify comments for the generated schema."msgstr ""#. Tag: programlisting#: toolset_guide.xml:271#, no-c-formatmsgid ""      "<![CDATA[<class name=\"Customer\" table=\"CurCust\">\n"      "    <comment>Current customers only</comment>\n"      "    ...\n"      "</class>]]>"msgstr ""#. Tag: programlisting#: toolset_guide.xml:273#, no-c-formatmsgid ""      "<![CDATA[<property name=\"balance\">\n"

⌨️ 快捷键说明

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