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: Enum flags and bit operators
PostPosted: Tue Jan 23, 2007 11:34 am 
Newbie

Joined: Tue Apr 04, 2006 9:57 am
Posts: 1
are there any bit level operators like or, and or xor available in hql? The immediate usecase is something like
Code:
select r from Report r where r.flags & 8
where flags would be a flag enum and 8 is the fourth bit. I haven seen a bitwise comparison like this in the docs but find myself wondering if any way of achieving the same thing?


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.