-->
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: downcasting in HQL
PostPosted: Fri Jun 09, 2006 5:45 pm 
Newbie

Joined: Fri Jun 09, 2006 4:23 pm
Posts: 2
How can I do downcasting in HQL? For example, suppose that I have a query with 2 where clauses C1 and C2 like

from A a where C1 & C2

if
1- I know that all "a" objects that satisfy C1 are of type B (which is a cubclass of A)

2- I need to use a field defined in B in C2 clause of my query.

For this, I need ot downcast "a" objects to type B to be able to write clause C2. How can I do that?

Thanks,
MH


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.