[
https://issues.jboss.org/browse/JBIDE-11641?page=com.atlassian.jira.plugi...
]
Dmitry Geraskov commented on JBIDE-11641:
-----------------------------------------
The classloader in current version doesn't worrk as expected: it should load user
libraries instead of internals from plugins, but it doesn't do this. And if make it to
load user libraries I got ClassCastException, which is a result of different class loaders
for the same class.
Support for Hibernate 3.2.4 in JBoss Tools 3.7.2
------------------------------------------------
Key: JBIDE-11641
URL:
https://issues.jboss.org/browse/JBIDE-11641
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: hibernate
Affects Versions: 3.3.0.Beta2
Environment: MacOS X 10.7.3
Eclipse Indigo
Reporter: Jochen H
Assignee: Dmitry Geraskov
Priority: Minor
Fix For: 3.3.0.Beta3
I'm trying to use the HQL editor (by using the Hibernate perspective).
When I load the editor, I'm getting following error:
org.hibernate.AnnotationException: Associations marked as mappedBy must not define
database mappings like @JoinTable or @JoinColumn: ##my class##
at org.hibernate.cfg.annotations.CollectionBinder.bind(CollectionBinder.java:476)
at
org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1906)
at
org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:769)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:733)
at
org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:636)
at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:359)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1206)
at
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter$1.execute(ConsoleConfigurationWorkbenchAdapter.java:45)
at
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)
at
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:41)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)
at
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
My annotations on that class are looking like this:
@OneToMany(mappedBy = "XYZ", cascade = CascadeType.ALL)
@JoinColumn(name = "XYZ_id", nullable = false)
So I guess this is not the correct syntax, but it works with Hibernate 3.2.4. But I'm
unable to select Hibernate version: 3.2.x :-(.
Any fix on this one?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira