-->
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.  [ 2 posts ] 
Author Message
 Post subject: contstants in HQL
PostPosted: Thu Jun 17, 2004 9:12 am 
Newbie

Joined: Sat Jan 31, 2004 3:56 pm
Posts: 8
Hi, can anyone tell me if it is possible to use a constant value (e.g. true) in HQL

select new dummyDTO(pers.name,true) from Person as pers where pers.id = :id

so here I want to past true as harcoded value so I won't need a spereate constructor on my DTO (Data transfer Object)

Thanks very much in advance

_________________
Thank you in advance
Yvan


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 17, 2004 10:03 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
No, not possible.


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

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.