Bug 208574 - Incorrect documentation for Generators
Summary: Incorrect documentation for Generators
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: Doc (show other bugs)
Version: 1.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Rick Sapir CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-02 11:13 EDT by Neil Hauge CLA
Modified: 2008-07-23 09:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Hauge CLA 2007-11-02 11:13:12 EDT
"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" on page 3-4 for more information."

This is not correct.  Should say "... but did not define a generator in the persistence unit via annotation or XML Mapping File."

Everything after that line should be removed.  Synchronizing the persistence.xml will not affect this issue.
Comment 1 Rick Sapir CLA 2008-01-22 08:55:19 EST
fixed in HEAD
Comment 2 Karen Butzke CLA 2008-06-04 11:02:26 EDT
I can't say that I like this validation error message now, but it has changed in 2.0 to be "Unresolved generator name "<GENERATOR_NAME>"	". Also, this error message would apply for sequence or table generators, so the user could define either to fix the problem
Comment 3 Rick Sapir CLA 2008-07-23 09:15:59 EDT
Error msg now reads: 

Unresovlved generator "<GENERATOR_NAME>" is defined in persistence unit.

You created a persistence entity that uses sequencing or a table generator, but did not define the generator in the persistence unit. Either define the generator by using an annotation or including it in the XML mapping file.