alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Hibernate example source code file (toolset_guide.pot)

This example Hibernate source code file (toolset_guide.pot) 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.

Java - Hibernate tags/keywords

ant, ddl, eclipse, hibernate, hibernate, jdbc, line, sql, tag, tag, the, the, you, you

The Hibernate toolset_guide.pot source code

# 
# AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: 0\n"
"POT-Creation-Date: 2010-02-11T05:38:16\n"
"PO-Revision-Date: 2010-02-11T05:38:16\n"
"Last-Translator: Automatically generated\n"
"Language-Team: None\n"
"MIME-Version: 1.0\n"
"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\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 ""

#. 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 ""

#. 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 ""

#. 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 ""

#. 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 ""

#. Tag: para
#, no-c-format
msgid "Please refer to the <emphasis>Hibernate Tools package documentation for more information."
msgstr ""

#. 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 ""

#. Tag: title
#, no-c-format
msgid "Automatic schema generation"
msgstr ""

#. 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 ""

#. 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 ""

#. 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 ""

#. Tag: title
#, no-c-format
msgid "Customizing the schema"
msgstr ""

#. 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 ""

#. 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: 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 ""

#. 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 ""

#. 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 ""

#. 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 ""

#. 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 ""

#. 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 ""

#. Tag: para
#, no-c-format
msgid "The <literal>check attribute allows you to specify a check constraint."
msgstr ""

#. 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 ""

#. Tag: entry
#, no-c-format
msgid "Values"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "Interpretation"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>length"
msgstr ""

#. 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 ""

#. Tag: entry
#, no-c-format
msgid "column decimal precision"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>scale"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "column decimal scale"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>not-null"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>true|false"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "specifies that the column should be non-nullable"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>unique"
msgstr ""

#. 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 ""

#. Tag: entry
#, no-c-format
msgid "<literal>index_name"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "specifies the name of a (multi-column) index"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>unique-key"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>unique_key_name"
msgstr ""

#. 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 ""

#. Tag: entry
#, no-c-format
msgid "<literal>foreign_key_name"
msgstr ""

#. 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 ""

#. Tag: entry
#, no-c-format
msgid "<literal>sql-type"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>SQL column type"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "overrides the default column type (attribute of <literal><column> element only)"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>default"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "SQL expression"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "specify a default value for the column"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>check"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "create an SQL check constraint on either column or table"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The <literal><comment> element allows you to specify comments for the generated schema."
msgstr ""

#. 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 ""

#. 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 ""

#. Tag: para
#, no-c-format
msgid "The following table displays the <literal>SchemaExport command line options"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>java -cp hibernate_classpaths org.hibernate.tool.hbm2ddl.SchemaExport options mapping_files"
msgstr ""

#. Tag: title
#, no-c-format
msgid "<literal>SchemaExport Command Line Options"
msgstr ""

#. 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 ""

#. Tag: entry
#, no-c-format
msgid "do not output the script to stdout"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>--drop"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "only drop the tables"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>--create"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "only create the tables"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>--text"
msgstr ""

#. 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 ""

#. Tag: entry
#, no-c-format
msgid "output the ddl script to a file"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>--naming=eg.MyNamingStrategy"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "select a <literal>NamingStrategy"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>--config=hibernate.cfg.xml"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "read Hibernate configuration from an XML file"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>--properties=hibernate.properties"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "read database properties from a file"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>--format"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "format the generated SQL nicely in the script"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>--delimiter=;"
msgstr ""

#. 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 ""

#. Tag: title
#, no-c-format
msgid "Properties"
msgstr ""

#. 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 ""

#. Tag: para
#, no-c-format
msgid "in <literal>hibernate.properties"
msgstr ""

#. Tag: para
#, no-c-format
msgid "in a named properties file with <literal>--properties"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The needed properties are:"
msgstr ""

#. Tag: title
#, no-c-format
msgid "SchemaExport Connection Properties"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "Property Name"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>hibernate.connection.driver_class"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "jdbc driver class"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>hibernate.connection.url"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "jdbc url"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>hibernate.connection.username"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "database user"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>hibernate.connection.password"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "user password"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "<literal>hibernate.dialect"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "dialect"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Using Ant"
msgstr ""

#. Tag: para
#, no-c-format
msgid "You can call <literal>SchemaExport from your Ant build script:"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Incremental schema updates"
msgstr ""

#. 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 ""

#. Tag: para
#, no-c-format
msgid "<literal>java -cp hibernate_classpaths org.hibernate.tool.hbm2ddl.SchemaUpdate options mapping_files"
msgstr ""

#. Tag: title
#, no-c-format
msgid "<literal>SchemaUpdate Command Line Options"
msgstr ""

#. 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 ""

#. Tag: para
#, no-c-format
msgid "You can embed <literal>SchemaUpdate in your application:"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Using Ant for incremental schema updates"
msgstr ""

#. Tag: para
#, no-c-format
msgid "You can call <literal>SchemaUpdate from the Ant script:"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Schema validation"
msgstr ""

#. 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 ""

#. Tag: para
#, no-c-format
msgid "<literal>java -cp hibernate_classpaths org.hibernate.tool.hbm2ddl.SchemaValidator options mapping_files"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The following table displays the <literal>SchemaValidator command line options:"
msgstr ""

#. Tag: title
#, no-c-format
msgid "<literal>SchemaValidator Command Line Options"
msgstr ""

#. Tag: para
#, no-c-format
msgid "You can embed <literal>SchemaValidator in your application:"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Using Ant for schema validation"
msgstr ""

#. Tag: para
#, no-c-format
msgid "You can call <literal>SchemaValidator from the Ant script:"
msgstr ""

Other Hibernate examples (source code examples)

Here is a short list of links related to this Hibernate toolset_guide.pot source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.