[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
Thu May 3 10:23:18 EDT 2012


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

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

Hi Max,

I just tested it. I started with an empty Eclipse Helios and then I installed JBoss Tools using the following "Update Site": http://download.jboss.org/jbosstools/updates/stable/helios/. 

This combination makes it possible to use the HQL editor again ...

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