Community
Participate
Working Groups
"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.
fixed in HEAD
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
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.