-->
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: Implementin "Inline view" (Oracle) with Hibernate,
PostPosted: Tue Mar 03, 2009 7:18 am 
Newbie

Joined: Wed Sep 10, 2008 6:41 am
Posts: 2
Hello,

Hibernate version: 3.3
Name and version of the database you are using: Oracle 10G

Is it possible with Hibernate to create an "Inline view" written under Oracle 10G . For instance this query :

Code:
    SELECT *
      FROM trs_dossiers_v table1,
     
           (SELECT pos_dsr_id
              FROM lgi_comment_t com, lgi_post_t POST
             WHERE com_pos_id = pos_id AND com.com_comment LIKE '%test%') commentaires,
             
           (SELECT pos_dsr_id
              FROM lgi_term_t trm, lgi_post_t POST
             WHERE trm_pos_id = pos_id AND POST.pos_subject LIKE '%test%') terms
             
     WHERE table1.requester_id IN (3232)
       AND table1.YEAR IN (2005, 2006, 2007, 2008)
       AND terms.pos_dsr_id = table1.ID   
       AND commentaires.pos_dsr_id = table1.ID


If yes, how can I do it ?
If no, why ?

Thanks by advance,
Regards,
Eric


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.