Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 3.0.0.CR2
-
Fix Version/s: 3.3.0.M3
-
Component/s: hibernate
-
Labels:None
-
Environment:Hibernate Tools 3.2.4.GA-N200902101801, Java Persistence API Tools 2.1.0.v200812180210
Description
This may be related to issue JBIDE-3636. https://jira.jboss.org/jira/browse/JBIDE-3636
With a @GenericGenerator declared as:
@GenericGenerator(name = "SeqBase",... ) //either in package-info.java or on the class
and used with:
@GeneratedValue(generator = "SeqBase") private Long id;
when in the "Hibernate Config" view and the hibernate configuration is trying to be displayed or rebuilt, Eclipse gives the following exception:
org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
Could not create JPA based Configuration
<No message>
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException: <no message>
java.lang.reflect.InvocationTargetException
javax.persistence.PersistenceException: org.hibernate.AnnotationException: Unknown Id.generator: SeqBase
org.hibernate.AnnotationException: Unknown Id.generator: SeqBase
org.hibernate.AnnotationException: Unknown Id.generator: SeqBase
Unknown Id.generator: SeqBase
Gliffy Diagrams
-
Hide
- GenericGeneratorProblem.zip
- 7.77 MB
- Bob Thule
-
- GenericGeneratorProblem/.classpath 0.6 kB
- GenericGeneratorProblem/.project 1 kB
- GenericGeneratorProblem/.../org.eclipse.jdt.core.prefs 0.3 kB
- GenericGeneratorProblem/.../org.eclipse.jpt.core.prefs 0.2 kB
- GenericGeneratorProblem/.../org.eclipse.jst.common.project.facet.core.prefs 0.2 kB
- GenericGeneratorProblem/.../org.eclipse.wst.common.component 0.2 kB
- GenericGeneratorProblem/.../org.eclipse.wst.common.project.facet.core.xml 0.3 kB
- GenericGeneratorProblem/.../org.hibernate.eclipse.console.prefs 0.1 kB
- GenericGeneratorProblem/.../getDeps.bat 0.0 kB
- GenericGeneratorProblem/.../pom.xml 2 kB
- GenericGeneratorProblem/.../readme.txt 0.2 kB
- GenericGeneratorProblem/.../antlr-2.7.6.jar 433 kB
- GenericGeneratorProblem/.../asm-1.5.3.jar 26 kB
- GenericGeneratorProblem/.../asm-attrs-1.5.3.jar 16 kB
- GenericGeneratorProblem/.../cglib-2.1_3.jar 276 kB
- GenericGeneratorProblem/.../commons-collections-3.1.jar 546 kB
- GenericGeneratorProblem/.../commons-logging-1.0.4.jar 37 kB
- GenericGeneratorProblem/.../dom4j-1.6.1.jar 307 kB
- GenericGeneratorProblem/.../ehcache-1.2.3.jar 203 kB
- GenericGeneratorProblem/.../ejb3-persistence-1.0.2.GA.jar 49 kB
- GenericGeneratorProblem/.../hibernate-3.2.6.ga.jar 2.17 MB
- GenericGeneratorProblem/.../hibernate-annotations-3.4.0.GA.jar 273 kB
- GenericGeneratorProblem/.../hibernate-commons-annotations-3.1.0.GA.jar 65 kB
- GenericGeneratorProblem/.../hibernate-core-3.3.1.GA.jar 2.17 MB
- GenericGeneratorProblem/.../hibernate-ehcache-3.3.1.GA.jar 7 kB
- GenericGeneratorProblem/.../hibernate-entitymanager-3.4.0.GA.jar 116 kB
- GenericGeneratorProblem/.../hibernate-search-3.0.1.GA.jar 194 kB
- GenericGeneratorProblem/.../hibernate-validator-3.1.0.GA.jar 61 kB
- GenericGeneratorProblem/.../javassist-3.4.GA.jar 460 kB
- GenericGeneratorProblem/.../jstl-1.1.2.jar 20 kB
-
- generator.PNG
- 29 kB
-
- generator-not-found.png
- 160 kB
Issue Links
- is related to
-
JBIDE-4607
GenericGenerator needs container annotation(GenericGenerators) support.
-
- Resolved
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Links Hierarchy
There also an opposite error. Let's say no error when generator is defined in package-info, but if the Generator name is changed changed, no error occurs.
not blocking M3
Jiri, Could you please rechek? My validator works nice. Probably you used old project to validate this and faced the "opposite" error?
Dima, we need to start identifying the issues that are causing compatibility errors since we need to fix (or at least identify it more clearly to the user) to support Hibernate 3.x and 4.x anyway.
Works good on released M3, verified.
JBIDE-3636is about the tools reading sequence generators, but this is about hibernate core/annotations.Does it work when you use the classes in your app ?
If yes, could you attach the minimal project with the bug ?