-->
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: Usage of parameter list in named sql-query
PostPosted: Thu Aug 30, 2007 2:39 am 
Newbie

Joined: Wed Jul 13, 2005 5:35 am
Posts: 2
Hi All,

I am facing some issue in dealing with named sql query.

Im pasting the following query.

<resultset name="abc">
<return alias="a" class="com.A"/>
</resultset>


<sql-query name="abcd" resultset-ref="abc" >
<![CDATA[

SELECT DISTINCT {a.*}
FROM CA.A a
(
SELECT DISTINCT {a.*}
FROM CA.A a
left join CA.AC or ON a.OID = or.OID

UNION ALL

SELECT DISTINCT {a.*}
FROM CA.A a
left join CA.DC or ON a.OID = or.OID
) r

WHERE
r = a and a NOT IN (:list_of_a)

]]>
</sql-query>


Here i am trying to pass a parameter list to sql-query. This is not working .
Is there any way of doing this .
The parameter list list_of_a contains objects of a.
How to go about this approach ?

thnx in advance


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.