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

Hibernate example source code file (example_mappings.pot)

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

content-transfer-encoding, here, here, hibernate, in, in, item, mappings, tag, tag, the, the, there, you

The Hibernate example_mappings.pot source code

# 
# AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: 0\n"
"POT-Creation-Date: 2010-02-11T05:38:15\n"
"PO-Revision-Date: 2010-02-11T05:38:15\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 "Example: Various Mappings"
msgstr ""

#. Tag: para
#, no-c-format
msgid "This chapters explores some more complex association mappings."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Employer/Employee"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The following model of the relationship between <literal>Employer and Employee uses an entity class (Employment) to represent the association. You can do this when there might be more than one period of employment for the same two parties. Components are used to model monetary values and employee names."
msgstr ""

#. Tag: para
#, no-c-format
msgid "Here is a possible mapping document:"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Here is the table schema generated by <literal>SchemaExport."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Author/Work"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Consider the following model of the relationships between <literal>Work, Author and Person. In the example, the relationship between Work and Author is represented as a many-to-many association and the relationship between Author and Person is represented as one-to-one association. Another possibility would be to have Author extend Person."
msgstr ""

#. Tag: para
#, no-c-format
msgid "The following mapping document correctly represents these relationships:"
msgstr ""

#. Tag: para
#, no-c-format
msgid "There are four tables in this mapping: <literal>works, authors and persons hold work, author and person data respectively. author_work is an association table linking authors to works. Here is the table schema, as generated by SchemaExport:"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Customer/Order/Product"
msgstr ""

#. Tag: para
#, no-c-format
msgid "In this section we consider a model of the relationships between <literal>Customer, Order, Line Item and Product. There is a one-to-many association between Customer and Order, but how can you represent Order / LineItem / Product? In the example, LineItem is mapped as an association class representing the many-to-many association between Order and Product. In Hibernate this is called a composite element."
msgstr ""

#. Tag: para
#, no-c-format
msgid "The mapping document will look like this:"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>customers, orders, line_items and products hold customer, order, order line item and product data respectively. line_items also acts as an association table linking orders with products."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Miscellaneous example mappings"
msgstr ""

#. Tag: para
#, no-c-format
msgid "These examples are available from the Hibernate test suite. You will find many other useful example mappings there by searching in the <literal>test folder of the Hibernate distribution."
msgstr ""

#. Tag: title
#, no-c-format
msgid "\"Typed\" one-to-one association"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Composite key example"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Many-to-many with shared composite key attribute"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Content based discrimination"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Associations on alternate keys"
msgstr ""

Other Hibernate examples (source code examples)

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

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

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 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.