-->
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.  [ 3 posts ] 
Author Message
 Post subject: No iterate method of Session interface in Hibernate3?
PostPosted: Thu Mar 03, 2005 3:53 am 
Newbie

Joined: Wed Feb 25, 2004 11:41 pm
Posts: 19
Location: China
I have download Hibernate3 RC1 and use it in my WEBAPP,then I find an error that no such method iterate(String xxx) in Session interface when I rebuild my files..

Now if I want to get count of result,the only way is use getSession().createQuery(this.createResultCountHQL()).iterate().next(),isnt it?

As my poor English skill(sorry), I have no time to look round H3's DOC carefully,I just want to know where can I find how many API changes between H2 and H3...I'm eager for update H2 to H3 in my webapp,what changes in H3 should I be care for?

thx for you reply

_________________
who can tell me why?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 03, 2005 5:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Either use createQuery, or switch to org.hibernate.classic.Session


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 03, 2005 6:07 am 
Newbie

Joined: Wed Feb 25, 2004 11:41 pm
Posts: 19
Location: China
thx for michael

I'll choose new Session interface,and that I think classic package will be discarded in the future,just my surmise ^_^

_________________
who can tell me why?


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