-->
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: HSQL to DetachedCriteria
PostPosted: Thu Jul 22, 2010 6:30 am 
Newbie

Joined: Thu Jul 22, 2010 5:41 am
Posts: 1
Hello,
I’m new to DetachedCriteria and would like to know how to map the following HSQL query:

SELECT table1.id, table2.id
FROM table1, table2
WHERE table1.id = table2.forgeinKeyId

I would use HSQL, but require a DetachedCriteria to use firstResult and maxResults for paging. I’m unable to change either my domain objects (auto-generated with JAXB) or the database schema, but believe this to be a simple query.

Many thanks,

John


Top
 Profile  
 
 Post subject: Re: HSQL to DetachedCriteria
PostPosted: Tue Aug 10, 2010 6:19 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Wrong forum. This question should be asked on the general Hibernate Users forum.


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.