-->
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: substitute value to hibernate Yes_no type in select stmt
PostPosted: Thu Nov 12, 2015 5:25 pm 
Newbie

Joined: Tue Apr 10, 2012 4:15 pm
Posts: 2
hi,
I am having issue in passing Boolean value to the hibernate Yes_No type in select statement (HQL), I am trying to write select query where I wanted to substitute true/'Y' to the yes_no type,

Ex: select emp.id, emp.name, emp.desig, 'Y'/true as isNew from employee;
in the above example select statement isNew indicator of hibernate Yes_no type.


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.