-->
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: Support for Derived Tables/Anonymous Views
PostPosted: Fri Mar 03, 2006 4:34 pm 
Newbie

Joined: Thu Oct 07, 2004 9:20 am
Posts: 11
My understanding is that Hibernate does not support anonymous views (sometimes referred to as derived tables) in the from clause. For instance:
Code:
select blah, ...
from (select mo.blah, ... from MyObject mo where ...)


I understand that I can use native SQL, but if possible I would really prefer to use HQL. I prefer the syntax and this is all part of an adhoc query engine that builds HQL queries and submits them.

For a variety of reasons, I can't put the subquery in a <subselect> definition.

If Hibernate does support this, please let me know. If not, is it worth creating a JIRA issue, or will it be rejected out of hand.

Hibernate version: 3.1.2

Name and version of the database you are using:Oracle9i


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.