-->
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.  [ 4 posts ] 
Author Message
 Post subject: Criteria does not have iterate() method
PostPosted: Wed Sep 03, 2003 9:40 pm 
Newbie

Joined: Thu Aug 28, 2003 8:41 pm
Posts: 17
1 Criteria does not have iterate() method, so it can not pull object from cache

2 Criteria does not have a method to get the query string it constructs

when i use Query class, i can do this:
give me the query string, for example "select foo from Foo foo",
i can construct a new query "select count(foo) from Foo foo" automaticlly to find out the record count, i think this is useful.

am i right?

thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2003 9:43 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Add a request to JIRA.

Its not trivial to implement, but certainly possible if I have time for this.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 04, 2004 5:41 pm 
Newbie

Joined: Tue May 04, 2004 5:03 pm
Posts: 3
The initial comment in this thread raised two issues, so I'm not sure if Gavin's reply was to the first, second or both.

So, is the first point correct -- that it's not possible to use a second-level cache with the Criteria API?

If it's not possible, is adding the ability to use a cache a planned feature?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 04, 2004 5:45 pm 
Pro
Pro

Joined: Tue Aug 26, 2003 1:24 pm
Posts: 213
Location: Richardson, TX
Quote:
that it's not possible to use a second-level cache with the Criteria API?


Golly, I hope not, 'cause then I'd feel really silly calling
Code:
Criteria.setCacheable(true)
:)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.