-->
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.  [ 3 posts ] 
Author Message
 Post subject: Access property of a subclass in HQL
PostPosted: Wed Nov 19, 2003 1:45 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Is there a way to access a subclass property in a HQL query (kind of casting in HQL)
Something like that
Code:
from SuperA as super where (super.class = SubClass and super.subClassProperty = ?


where SubClass extends SuperA and subClassProperty is a property of SubClass.

This would be cool in case you one-to-many by the superclass and want to restrict the request by one of the subclass property.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 19, 2003 7:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
no, its not possible yet

If we reimplement HQL in 2.2, I will take a look at this


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 20, 2003 8:45 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This is HB-33. I voted for it.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.