-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Does not fetch mutliple objects in Set -
PostPosted: Sun Jun 24, 2007 1:44 pm 
Newbie

Joined: Sun Jun 24, 2007 1:25 pm
Posts: 1
Does not fetch mutliple objects in Set - com.sun.jdi.InvocationException


The mapping I have used is
<set name="usmlCollection" table="dtas_case">

<key column="case_id" not-null="true"/>
<element type="java.lang.String"

formula= "(select distinct cmc.category_code from commodity_category cmc
where cmc.category_id in(
select cms.category_id from commodity_subcategory cms
where cms.subcategory_id in(
select cmm.subcategory_id from commodity_matrix cmm
where cmm.item_id in(
select cm.commodity_item from commodity cm
where cm.case_id = case_id)

)
)
)"

/>

</set>
----------------
when the result set contains just one element I get the resultset with 1 element in the array; However for cases where more than 1 value is present , I get the com.sun.jdi.InvocationException

Can somebody please help or tell me some alternatives ? I cannot change any other hbm mapping for other classes


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.