-->
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: Can Nested Queries be converted in Hibernate Queries.
PostPosted: Mon Apr 17, 2006 6:26 pm 
Newbie

Joined: Mon Apr 17, 2006 12:10 pm
Posts: 1
Hello,

I have a following nested query which I need to convert into Hibernate Query:

select count(this.DivisionMenu_ID)
from BDEFO01.DivisionMenuContent this
where this.DivisionMenu_ID =2457 and exists
(select 1
from BDEFO01.Content content0_
where content0_.Is_Active=1 and this.Content_ID=
content0_.Content_ID and content0_.Valid_From<=
current timestamp and content0_.Valid_To>=current
timestamp - 2 days )


Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 18, 2006 4:08 am 
Expert
Expert

Joined: Thu Sep 22, 2005 10:29 am
Posts: 285
Location: Almassera/Valencia/Spain/EU/Earth/Solar system/Milky Way/Local Group/Virgo Supercluster
What's the problem?


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.