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

Jochen H (JIRA) jira-events at lists.jboss.org
Thu Apr 26 02:30:18 EDT 2012


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

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

Hi Max,

Yes, I agree that this is an exception which is coming from the developer. But we are using these annotations for a very long time now, and it is working perfectly on our production server.

Now, I've upgraded JBoss Tools (because I upgraded my Eclipse), and I'm unable to use the JBoss Tools HQL Editor. So I think it would be better if the JBoss Tools still support version 3.2.4 (the user has to manually select it) and the tools should "act as" Hibernate 3.2.4. 

Kind regards,
Jochen
                
> 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: LATER
>         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

        


More information about the jbosstools-issues mailing list