[jbosstools-issues] [JBoss JIRA] (JBIDE-11641) Support for Hibernate 3.2.4 in JBoss Tools 3.3.0.Beta2

Jochen H (JIRA) jira-events at lists.jboss.org
Mon May 21 09:34:17 EDT 2012


    [ https://issues.jboss.org/browse/JBIDE-11641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12694336#comment-12694336 ] 

Jochen H commented on JBIDE-11641:
----------------------------------

Hi Dmitry,

I already tried it, but the current project is so big and everything seems to be so nested, that I'm unable to make a small project. And I cannot post the whole project, as I am obligated to keep the source private :-).

Anyways, I downgraded to Eclipse 3.6. It works for me. 
You can close this ticket if you want, it's gonna take us too much time. We should fix the errors as developers. The plugin is working great, just a little bit different then before.

Jochen
                
> Support for Hibernate 3.2.4 in JBoss Tools 3.3.0.Beta2
> ------------------------------------------------------
>
>                 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.CR1
>
>
> 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

        


More information about the jbosstools-issues mailing list