-->
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: HQL Help
PostPosted: Mon Sep 10, 2007 4:22 pm 
Newbie

Joined: Fri Oct 20, 2006 12:55 pm
Posts: 12
Hello,

I'm having some trouble with an HQL query. I have a status check bean that has a constructor of the form StatusCheckBean(String, Long, List) and my query is like this :

Code:
select new org.mypackage.StatusCheckBean(c.uuaid,c.chequeNumber,(select ... ))
from org.mypackage.Cheque c
where ...


...but I keep getting a 'getDataType() is not supported by ConstructorNode!' error when I try to use the subselect in the constructor, and I get a '<line 1:118: unexpected token: ,>' error when I try to use this syntax :

Code:
select new org.mypackage.StatusCheckBean(c.uuaid,c.chequeNumber,new list(select ... ))
from org.mypackage.Cheque c
where ...


Does anybody know how I can use a constructor that takes a list argument ?


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.