-->
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: Hibernate(3.3.1.GA) + ORACLE(10.2.0.3) ROWNUM Exception
PostPosted: Thu Sep 08, 2011 11:36 pm 
Newbie

Joined: Thu Sep 08, 2011 10:38 pm
Posts: 2
Hi everybody!

I'm using Hibernate(3.3.1GA) with ojdbc14(10.2.0.3) on ORACLE(10.2.0.3) and get an unbelievable problem.

I like using Named Parameters in HQL as it supports Collections to be set. But I found hibernate only return 10 rows even though I set query.setFirstResult(0);query.setMaxResults(20);, and I'm sure there are more then 10 rows in DB.

More Detail:
1, Debug on line query.list();, query.selection displays firstRow=0, maxRows=20; but query.list() only return 10 items;

2, Looking for parameters set into sql from V$SQL_BIND_CAPTURE, it shows rownum=0;

3, alter system flush shared_pool, query.list() return 20 rows;

4, turn on the oracle sql_trace, query.list() return 20 rows;

5, turn off the oracle sql_trace, query.list() return 10 rows;

6, turn off the oracle sql_trace, debug on line query.list(), looking for oracle sessionId and serialNumber from query, then turn on the sql_trace on the session used by hibernate. query.list() return 20 rows;

It seems that it's the problem of oracle, but I'm not sure, does anybody knows?


Top
 Profile  
 
 Post subject: Re: Hibernate(3.3.1.GA) + ORACLE(10.2.0.3) ROWNUM Exception
PostPosted: Mon Sep 12, 2011 11:05 pm 
Newbie

Joined: Thu Sep 08, 2011 10:38 pm
Posts: 2
No body knows?


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.