-->
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: Filtering HQL query on <discriminator> column
PostPosted: Tue Oct 19, 2004 1:27 pm 
Regular
Regular

Joined: Fri Sep 03, 2004 2:01 pm
Posts: 51
Hibernate version:2.1.6

I have a table per hierarchy mapping.

In the "Parent" table, I have a <disciminator> column called "type", which hibernate happily reads and constructs the various derrived objects. This all works fine.

Im trying to write queries to return me a subset of the parent data, switching on these type codes.

Is this possible? If so, how?

Hibernate wants to run the query against a mapped property, but the <disciminator> isnt a property.



Nick


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 19, 2004 1:31 pm 
Regular
Regular

Joined: Fri Sep 03, 2004 2:01 pm
Posts: 51
Please ignore this, I missed the special class property in the manual.

Nick


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.