-->
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: Has anyone seen this warning before: firstResult/maxResult..
PostPosted: Tue Mar 06, 2007 7:43 pm 
Newbie

Joined: Tue Dec 12, 2006 6:35 pm
Posts: 19
Hi guys,


Hibernate version 3.2.2
MySql version 4.1.22

This isn't really a bug but a warning i'm getting:

firstResult/maxResult specified on polymorphic query; applying in memory!


Basically i am using the Spring HibernateTemplate.

The query is:

select count(user) from MailingListUser user


Even though i have the Spring HibernateDao bean set to scope prototype because i have more than 1 query in a single service any filters or maxResults set on the hibernateTemplate are not cleared before the next query call on the template.


The results is that Hibernate loads every element of the class MailingListUser i am querying from the database. Which takes forever.

Has anyone seen the above warning before?

Thanks,
Josh

_________________
_________________________
http://www.joshandfriends.com.au

Dance Music | Events | DJs


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.