From 29c88117314d27acdd5fb89b6168a56619df4be6 Mon Sep 17 00:00:00 2001 From: nhauge Date: Tue, 15 May 2007 16:54:59 +0000 Subject: 178911 - New documentation updates. --- jpa/plugins/org.eclipse.jpt.doc.user/about.htm | 6 +- .../org.eclipse.jpt.doc.user/concept_mapping.htm | 2 +- .../concept_persistence.htm | 2 +- jpa/plugins/org.eclipse.jpt.doc.user/concepts.htm | 4 +- .../org.eclipse.jpt.doc.user/concepts001.htm | 3 +- .../org.eclipse.jpt.doc.user/concepts002.htm | 3 +- .../org.eclipse.jpt.doc.user/concepts003.htm | 5 +- jpa/plugins/org.eclipse.jpt.doc.user/contexts.xml | 2 +- .../org.eclipse.jpt.doc.user/getting_started.htm | 2 +- .../getting_started001.htm | 2 +- .../getting_started002.htm | 2 +- .../getting_started003.htm | 2 +- .../getting_started004.htm | 4 +- .../getting_started005.htm | 2 +- .../getting_started006.htm | 2 +- .../getting_started007.htm | 2 +- .../getting_started008.htm | 2 +- .../getting_started009.htm | 2 +- .../getting_started010.htm | 2 +- .../getting_started011.htm | 2 +- .../getting_started012.htm | 2 +- .../getting_started013.htm | 2 +- .../getting_started014.htm | 2 +- .../getting_started015.htm | 2 +- .../getting_started016.htm | 2 +- .../getting_started017.htm | 2 +- .../getting_started018.htm | 2 +- .../getting_started019.htm | 2 +- jpa/plugins/org.eclipse.jpt.doc.user/index.xml | 418 +++++++++++---------- jpa/plugins/org.eclipse.jpt.doc.user/legal.htm | 6 +- .../org.eclipse.jpt.doc.user/ref_details_orm.htm | 2 +- .../org.eclipse.jpt.doc.user/ref_jpa_facet.htm | 2 +- .../ref_mapping_general.htm | 14 +- .../ref_new_jpa_project.htm | 2 +- .../ref_new_jpa_project_wizard.htm | 2 +- .../ref_persistence_map_view.htm | 4 +- .../ref_persistence_outline.htm | 6 +- .../ref_persistence_perspective.htm | 6 +- .../ref_persistence_prop_view.htm | 4 +- .../org.eclipse.jpt.doc.user/ref_primary_key.htm | 6 +- .../ref_project_properties.htm | 9 +- jpa/plugins/org.eclipse.jpt.doc.user/reference.htm | 8 +- .../org.eclipse.jpt.doc.user/reference001.htm | 2 +- .../org.eclipse.jpt.doc.user/reference002.htm | 2 +- .../org.eclipse.jpt.doc.user/reference003.htm | 2 +- .../org.eclipse.jpt.doc.user/reference004.htm | 6 +- .../org.eclipse.jpt.doc.user/reference005.htm | 6 +- .../org.eclipse.jpt.doc.user/reference006.htm | 4 +- .../org.eclipse.jpt.doc.user/reference007.htm | 4 +- .../org.eclipse.jpt.doc.user/reference008.htm | 2 +- .../org.eclipse.jpt.doc.user/reference009.htm | 2 +- .../org.eclipse.jpt.doc.user/reference010.htm | 2 +- .../org.eclipse.jpt.doc.user/reference011.htm | 5 +- .../org.eclipse.jpt.doc.user/reference012.htm | 3 +- .../org.eclipse.jpt.doc.user/reference013.htm | 54 +-- .../org.eclipse.jpt.doc.user/reference014.htm | 97 ++++- .../org.eclipse.jpt.doc.user/reference015.htm | 73 +--- .../org.eclipse.jpt.doc.user/reference016.htm | 33 +- .../org.eclipse.jpt.doc.user/reference017.htm | 26 +- .../org.eclipse.jpt.doc.user/reference018.htm | 58 --- .../task_add_persistence.htm | 9 +- .../task_additonal_tables.htm | 79 ++++ .../task_create_new_project.htm | 5 +- .../task_generate_entities.htm | 4 +- .../org.eclipse.jpt.doc.user/task_inheritance.htm | 94 ++++- .../task_inheritance001.htm | 143 ------- .../org.eclipse.jpt.doc.user/task_manage_orm.htm | 3 +- .../task_manage_persistence.htm | 3 +- .../org.eclipse.jpt.doc.user/task_mapping.htm | 2 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks.htm | 7 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks001.htm | 4 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks002.htm | 5 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks003.htm | 2 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks004.htm | 6 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks005.htm | 4 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks006.htm | 12 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks007.htm | 4 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks008.htm | 4 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks009.htm | 4 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks010.htm | 4 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks011.htm | 4 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks012.htm | 6 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks013.htm | 4 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks014.htm | 6 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks015.htm | 4 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks016.htm | 4 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks017.htm | 8 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks018.htm | 6 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks019.htm | 53 +-- jpa/plugins/org.eclipse.jpt.doc.user/tasks020.htm | 6 +- jpa/plugins/org.eclipse.jpt.doc.user/tasks021.htm | 5 +- .../org.eclipse.jpt.doc.user/tips_and_tricks.htm | 2 +- jpa/plugins/org.eclipse.jpt.doc.user/toc.xml | 13 +- jpa/plugins/org.eclipse.jpt.doc.user/whats_new.htm | 2 +- .../org.eclipse.jpt.doc.user/whats_new001.htm | 4 +- .../org.eclipse.jpt.doc.user/whats_new002.htm | 6 +- .../org.eclipse.jpt.doc.user/whats_new003.htm | 6 +- 97 files changed, 697 insertions(+), 779 deletions(-) delete mode 100644 jpa/plugins/org.eclipse.jpt.doc.user/reference018.htm create mode 100644 jpa/plugins/org.eclipse.jpt.doc.user/task_additonal_tables.htm delete mode 100644 jpa/plugins/org.eclipse.jpt.doc.user/task_inheritance001.htm (limited to 'jpa/plugins') diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/about.htm b/jpa/plugins/org.eclipse.jpt.doc.user/about.htm index 5194b6a9fe..af160ccefd 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/about.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/about.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- +@@ -29,7 +29,7 @@ |
May 5, 2007
- +License
The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available at http://www.eclipse.org/legal/epl-v10.html
. For purposes of the EPL, "Program" will mean the Content.
If you did not receive this Content directly from the Eclipse Foundation, the Content is being redistributed by another party ("Redistributor") and different terms and conditions may apply to your use of any object code in the Content. Check the Redistributor's license that was provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise indicated below, the terms and conditions of the EPL still apply to any source code in the Content and such source code may be obtained at http://www.eclipse.org
.
In addition to these sections, you should review the following resources for additional information:
Eclipse Dali project: http://www.eclipse.org/dali
Eclipse Dali project: http://www.eclipse.org/webtools/dali
Eclipse Web Tools Platform project: http://www.eclipse.org/webtools
The EJB 3.0 Java Persistence API (JPA) improves the EJB architecture by reducing its complexity through the use of metadata (annotations) and specifying programmatic defaults of that metadata.
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/concepts002.htm b/jpa/plugins/org.eclipse.jpt.doc.user/concepts002.htm index 6770bede34..a0631b71fd 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/concepts002.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/concepts002.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - +
Although the JPA specification emphasizes the use of annotations to specify persistence, you can also the orm.xml
file to store this metadata. Dali can use the Eclipse XML Editor to create and maintain this information. The metadata must match the XSD specification of your selected JPA implementation. See "Managing the orm.xml file" for more information.
After associating the entity with the database table, you must update the persistence.xml
file to include this JPA entity.
@@ -28,7 +28,7 @@ |
Notices
The material in this guide is copyright © 2006, 2007 by Oracle.
Terms and conditions regarding the use of this guide.
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/ref_details_orm.htm b/jpa/plugins/org.eclipse.jpt.doc.user/ref_details_orm.htm index 7cd74d0d14..1bcaf6a5ab 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/ref_details_orm.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/ref_details_orm.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - +@Column
annotation.@Column
annotation.java.sql.Clob
or java.sql.Blob
.
This field corresponds to the @Lob
annotation.
String
value suits your application requirements or to match an existing database schema.
The JPA Details view displays the persistence information for the currently selected mapped attribute and contains the following areas:
+The JPA Details view displays the persistence information for the currently selected mapped attribute and contains the following areas:
The JPA Structure view displays an outline of the structure (its attributes and mappings) of the entity that is currently selected or opened in the editor. The structural elements shown in the outline are the entity and its fields.
-The JPA Structure view displays an outline of the structure (its attributes and mappings) of the entity that is currently selected or opened in the editor. The structural elements shown in the outline are the entity and its fields.
+ diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/ref_persistence_perspective.htm b/jpa/plugins/org.eclipse.jpt.doc.user/ref_persistence_perspective.htm index eaf7836816..f3666de3db 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/ref_persistence_perspective.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/ref_persistence_perspective.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - +The JPA Development perspective defines the initial set and layout of views in the Workbench window when using Dali. By default, the JPA Development perspective includes the following vies:
+The JPA Development perspective defines the initial set and layout of views in the Workbench window when using Dali. By default, the JPA Development perspective includes the following vies:
The JPA Details view displays the persistence information for the currently selected entity and contains the following tabs:
+The JPA Details view displays the persistence information for the currently selected entity and contains the following tabs:
@GeneratedValue
annotation.@GeneratedValue
annotation.@SequenceGenerator
annotation.
+@SequenceGenerator
annotation.
These fields apply only when Strategy = Sequence.
Use the JPA options on the Properties page to select the database connection to use with the project.
+Use the JPA options on the Properties page to select the database connection to use with the project.
This table lists the properties available in the Persistence Properties page.
Platform | +Platform | Select the vendor-specific platform. | |
Connection | +Connection | The database connection used to map the persistent entities.
|
This table lists the fields available on the Inheritance area in the Java Details view for each entity type.
+This table lists the fields available on the Inheritance area in the Java Details view for each entity type.
Join Columns | -Specify a mapped column for joining an entity association. This field corresponds to the @JoinColum attribute.
+ | Specify a mapped column for joining an entity association. This field corresponds to the @JoinColum attribute.
Select Override Default, then Add, Edit, or Remove the join columns. |
By default, the mapping is assumed to have a single join. | diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/reference007.htm b/jpa/plugins/org.eclipse.jpt.doc.user/reference007.htm index 8156b0d0db..fe97268e01 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/reference007.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/reference007.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - +
Join Column | -Specify a mapped column for joining an entity association. This field corresponds to the @JoinColum attribute.
+ | Specify a mapped column for joining an entity association. This field corresponds to the @JoinColum attribute.
Select Override Default, then Add, Edit, or Remove the join columns. |
By default, the mapping is assumed to have a single join. | diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/reference008.htm b/jpa/plugins/org.eclipse.jpt.doc.user/reference008.htm index 871347e8a5..5f298a4116 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/reference008.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/reference008.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - +
Use an Embedded ID Mapping to specify the primary key of an embedded ID. These mappings may be used with a Embeddable entities.
+Use an Embedded ID Mapping to specify the primary key of an embedded ID. These mappings may be used with a Embeddable entities.
In the JPA Structure view, select the field to map. The JPA Details view (for attributes) displays the properties for the selected field.
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/tasks010.htm b/jpa/plugins/org.eclipse.jpt.doc.user/tasks010.htm index 4d57baab82..83632a8f2f 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/tasks010.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/tasks010.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - +Use an ID Mapping to specify the primary key of an entity. ID mappings may be used with a Entity or Mapped superclass. Each Entity must have an ID mapping.
+Use an ID Mapping to specify the primary key of an entity. ID mappings may be used with a Entity or Mapped superclass. Each Entity must have an ID mapping.
In the JPA Structure view, select the field to map. The JPA Details view (for attributes) displays the properties for the selected.
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/tasks011.htm b/jpa/plugins/org.eclipse.jpt.doc.user/tasks011.htm index a7191764be..717dfaddc4 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/tasks011.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/tasks011.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - +Use a Many-to-Many Mapping to define a many-valued association with many-to-many multiplicity. A many-to-many mapping has two sides: the owning side and non-owning side. You must specify the join table on the owning side. For bidirectional mappings, either side may be the owning side.
+Use a Many-to-Many Mapping to define a many-valued association with many-to-many multiplicity. A many-to-many mapping has two sides: the owning side and non-owning side. You must specify the join table on the owning side. For bidirectional mappings, either side may be the owning side.
In the JPA Structure view, select the field to map. The JPA Details view (for attributes) displays the properties for the selected.
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/tasks012.htm b/jpa/plugins/org.eclipse.jpt.doc.user/tasks012.htm index 9a48136628..ed1346885a 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/tasks012.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/tasks012.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - +Use a Many-to-One mapping to defines a single-valued association to another entity class that has many-to-one multiplicity.
+Use a Many-to-One mapping to defines a single-valued association to another entity class that has many-to-one multiplicity.
In the JPA Structure view, select the field to map. The JPA Details view (for attributes) displays the properties for the selected.
@@ -88,7 +88,7 @@@JoinColum
attribute.
+@JoinColum
attribute.
Select Override Default, then Add, Edit, or Remove the join columns.
Use a One-to-Many Mapping to define a relationship with one-to-many multiplicity.
+Use a One-to-Many Mapping to define a relationship with one-to-many multiplicity.
In the JPA Structure view, select the field to map. The JPA Details view (for attributes) displays the properties for the selected.
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/tasks014.htm b/jpa/plugins/org.eclipse.jpt.doc.user/tasks014.htm index 0dec6fd656..bae3fa4df1 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/tasks014.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/tasks014.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - +Use a One-to-One Mapping to define a relationship with one-to-many multiplicity.
+Use a One-to-One Mapping to define a relationship with one-to-many multiplicity.
In the JPA Structure view, select the field to map. The JPA Details view (for attributes) displays the properties for the selected.
@@ -93,7 +93,7 @@@JoinColum
attribute.
+@JoinColum
attribute.
Select Override Default, then Add, Edit, or Remove the join columns.
Use the Transient Mapping to specify a or field of the entity class that is not persistent.
+Use the Transient Mapping to specify a or field of the entity class that is not persistent.
To create a version mapping:
Use a Version Mapping to specify the field used for optimistic locking. If the entity is associated with multiple tables, you should use a version mapping only with the primary table. You should have only a single version mapping per persistent entity. Version mappings may be used only with the following attribute types:
+Use a Version Mapping to specify the field used for optimistic locking. If the entity is associated with multiple tables, you should use a version mapping only with the primary table. You should have only a single version mapping per persistent entity. Version mappings may be used only with the following attribute types:
int
Use this procedure to generate Java persistent entities from database tables. You must create a JPA project and establish a database connection before generating persistent entities. See "Creating a new JPA project" for more information.
+Use this procedure to generate Java persistent entities from database tables. You must create a JPA project and establish a database connection before generating persistent entities. See "Creating a new JPA project" for more information.
Right-click the JPA project in the Package Explorer and select JPA Tools > Generate Entities.
-After connecting to the database, click Next.
On the Generate Entities from Tables dialog dialog, select the tables from which to generate Java persistent entities and click Finish.
+On the Generate Entities from Tables dialog dialog, select the tables from which to generate Java persistent entities and click Finish.
Eclipse creates a Java persistent entity for each database table. Each entity contains fields based on the table's columns. Eclipse will also generate entity relationships (such as one-to-one) based on the table constraints. Figure: Generating Entities from Tables illustrates how Eclipse generates entities from tables.
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/tasks018.htm b/jpa/plugins/org.eclipse.jpt.doc.user/tasks018.htm index dec0f8155c..d57b83ec07 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/tasks018.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/tasks018.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - +Errors and warnings on persistent entities and mappings are indicated with a red error or yellow warning next to the resource with the error, as well as the parent containers up to the project.
-Errors and warnings on persistent entities and mappings are indicated with a red error or yellow warning next to the resource with the error, as well as the parent containers up to the project.
+ diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/tasks019.htm b/jpa/plugins/org.eclipse.jpt.doc.user/tasks019.htm index 194b27adcc..94e125d543 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/tasks019.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/tasks019.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - +
-Error messages+Error messages |
This section contains information on error messages (including how to resolve the issue) you may encounter while working with Dali.
- +Attribute "<ATTRIBUTE__NAME>" has invalid mapping type in this context
The mapped attribute is invalid. Either change the mapping type or change the entity type.
See "Mapping an entity" for more information.
- +Attribute "<ATTRIBUTE_NAME>" cannot be resolved.
Dali cannot map the attribute to a database table and column. Verify that you database connection information is correct.
See "Creating a new JPA project" for more information.
- +Class "<CLASS_NAME>" is not annotated as a persistent class.
The class has not been identified as a persistent class. Configure the class as an Entity, Mapped Superclass, or Embeddable persistent entity.
See "Adding persistence to a class".
- +Column "<COLUMN_NAME>" cannot be resolved.
You mapped an entity's field to an incorrect or invalid column in the database table. By default, Dali will attempt to map each field in the entity with an identically named row in the database table. If the field's name differs from the row's name, you must explicitly create the mapping.
Map the field to a valid row in the database table as shown in "Mapping an entity".
- +Duplicate class "<CLASS_NAME>".
You created to persistence classes with the same name. Each Java class must have a unique name. See "Adding persistence to a class" for more information.
- -Duplicate mapping file "<FILE_NAME>".
-Meaning
Entity does not have an Id or Embedded Id.
You created a persistent entity without identifying its primary key. A persistent entity must have a primary key field designated with an @Id
or @EmbeddedId
annotation.
Add an ID mapping to the entity as shown in "ID mapping" or "Embedded ID mapping".
-In virtual association override "<ITEM>" cannot be resolved.
-Meaning
- -In virtual attribute "<ITEM>" cannot be resolved.
-Meaning
- -Invalid content (no root node).
-Meaning
- -Join column/table "<COLUMN/TABLE_NAME>" cannot be resolved.
-Meaning
- -Mapping file "<MAPPING_FILE>" cannot be resolved.
-Meaning
- -Mapping file "<MAPPING_FILE>" does not have ORM content.
-Meaning
- -Metadata for persistence unit "<PERSISTENCE_UNIT>" specified in multiple mapping files.
-Meaning
- -Multiple persistence units defined.
-informationPending
-Multiple persistence.xml files in project.
You created a JPA project with more than one persistence.xml
file. Each JPA project must contain a single persistence.xml
file.
See "Managing the persistence.xml file" for more information.
- +No generator named "<GENERATOR_NAME>" is defined in persistence unit.
You created a persistence entity that uses sequencing, but did not define include the sequence generator in the psersistence.xml
file. Synchronize the persistence.xml
file with your current project.
See "Synchronizing classes" for more information.
- +No persistence unit defined.
There is no <persistence-unit-metadata>
information in the orm.xml
file. Add the default persistence unit information.
See "Managing the orm.xml file" for more information.
- +No persistence.xml file in project.
You created a JPA project without a persistence.xml
file. Each JPA project must contain a single persistence.xml
file.
See "Managing the persistence.xml file" for more information.
- +Referenced column "<COLUMN_NAME>" in join column "<COLUMN_NAME>" cannot be resolved.
The column that you selected to join a relationship mapping does not exist on the database table. Either select a different column on the Join Table Information or create the necessary column on the database table.
See "JPA Details view (for attributes)" for more information.
- +Schema "<SCHEMA_NAME>" cannot be resolved for table/join table "<TABLE_NAME>".
Define the default database schema information in the persistence unit.
See "Managing the orm.xml file" for more information.
- +Table "<TABLE_NAME>" cannot be resolved.
You associated a persistent entity to an incorrect or invalid database table. By default, Dali will attempt to associate each persistent entity with an identically named database table. If the entity's name differs from the table's name, you must explicitly create the association.
Associate the entity with a valid database table as shown in "Adding persistence to a class".
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/tasks020.htm b/jpa/plugins/org.eclipse.jpt.doc.user/tasks020.htm index 9c157ff794..71bbe6d58f 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/tasks020.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/tasks020.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - +This section contains information on warning messages (including how to resolve the issue) you may encounter while working with Dali.
- +Connection "<CONNECTION_NAME>" is not active. No validation will be done against the data source.
The database connection you specified to use with the JPA project is not active. The JPA project requires an active connection.
- +No connection specified for the project. No data-specific validation will be performed.
You created a JPA project without specifying a database connection. The JPA project requires an active connection.
See "Creating a new JPA project" or "Modifying persistent project properties" for information on specifying a database connection.
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/tasks021.htm b/jpa/plugins/org.eclipse.jpt.doc.user/tasks021.htm index 800d50d6e2..c9ddba4dff 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/tasks021.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/tasks021.htm @@ -2,7 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - +Right-click the project in the Explorer view and select Properties. The Properties page appears.
-
Use the Generate Entities from Tables wizard to quickly create JPA entities from your database tables.
-When creating a JPA project, Dali automatically creates the perssistence.xml
file.
Use the XML editor to edit the persistence.xml
file.
After adding your JPA entities, use the Java Persistence > Synchronize Classes option to add the classes to the persistence.xml
file.
When creating a JPA project, you can also create the orm.xml
file. Select the Create orm.xml option on the JPA Facet page page of the Create New JPA Project wizard.