[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1768) hbm2java: error generating collection of components

Carsten Hoehne (JIRA) jira-events at lists.jboss.org
Thu Mar 20 06:07:51 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1768?page=comments#action_12403789 ] 
            
Carsten Hoehne commented on JBIDE-1768:
---------------------------------------

Vacation ended. So i tested your result.zip.

With your mapping:
	@CollectionOfElements(fetch = FetchType.EAGER)
	@JoinTable(name = "samplewell", joinColumns = { @JoinColumn(name = "SAMPLE2WELLID", nullable = false, updatable = false) }, inverseJoinColumns = {
			@JoinColumn(name = "SAMPLEID", updatable = false),
			@JoinColumn(name = "well_adress", updatable = false),
			@JoinColumn(name = "well_column", updatable = false),
			@JoinColumn(name = "well_row", updatable = false) })
	@Cascade( { CascadeType.SAVE_UPDATE })
an exception (saying that inverseJoinColumn targets an unmapped Class - which is correct) is thrown whilst deploying.
d
If inverseJoinColumns is deleted it is deployed with this exception:
javax.persistence.PersistenceException: org.hibernate.HibernateException: cannot simultaneously fetch multiple bags

I do not know the exact point where the exception is raised. I have to debug.
The app with hbm.xml mappings and without Entitymanager deploys successfully.
This new Hibernate/JPA app with Entitymanager does not deploy. But i suppose that this has nothing to do with this issue.
So this issue can be closed when inversejoincolumn is removed. 

After hunting down the remaining problems i will eventually a new issue.


> hbm2java: error generating collection of components
> ---------------------------------------------------
>
>                 Key: JBIDE-1768
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1768
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 2.0.0.GA
>            Reporter: Carsten Hoehne
>         Assigned To: Vitali Yemialyanchyk
>         Attachments: demo.zip, ex - cfg.jpg, ex - cogen - cfg 1.jpg, ex - cogen - cfg 2.jpg, ex - stack 1.1.jpg, ex - stack 1.2.jpg, ex - stack 2.1.jpg, ex - stack 2.2.jpg, exception 1.jpg, result.zip, Sample.hbm.xml, Sample2Well.hbm.xml, test-case-1.jpg, test-case-1_add_2.jpg, test-case-2.jpg, ZZ_Sample.zip
>
>
> Java code with annotations should be generated from a mapping file. This file contains a collection of components. Then an exception is thrown. See forum reference.
> The files will be attached. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list