-->
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: Constant expressions in hql
PostPosted: Thu Sep 08, 2005 4:27 am 
Hi,

Is it possible to use constant expressions in hql?

My hql:
Code:
select new JobAndGroupData(sge.Id, 0, sge.Code, sge.Name, 1) from SalaryGroupEntity sge


fails with error:
Code:
undefined alias or unknown mapping: 0 [select new JobAndGroupData(sge.Id, 0, sge.Code, sge.Name, 1) from Si.Biromt.Usp.Server.Data.Entity.SalaryGroupEntity sge]


Thanks,
Bo


Top
  
 
 Post subject: +1
PostPosted: Thu May 03, 2007 6:05 am 
Newbie

Joined: Thu May 03, 2007 6:02 am
Posts: 3
I also have the same problem. Does anybody knows how to use a constant in the select expression of an HQL query ?


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.