-->
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: Replacement for Session.find() in Hib 3.1
PostPosted: Mon Jan 09, 2006 7:26 am 
Newbie

Joined: Tue May 24, 2005 1:14 am
Posts: 6
Hi

I just upgraded to hib 3.1. Is there a replacement for Session.find() ?

Thanks,
Rajiv


Top
 Profile  
 
 Post subject: found it!!!
PostPosted: Mon Jan 09, 2006 7:34 am 
Newbie

Joined: Tue May 24, 2005 1:14 am
Posts: 6
Sorry guys.. Missed out this one... But why were these methods deprecated?

Quote:
Session interface

Certain redundant methods were deprecated and removed from the org.hibernate.Session interface. However, to make migration easier, these methods are still available, via the org.hibernate.classic.Session subinterface. These deprecated methods are:

* query execution methods: find(), iterate(), filter(), delete()
* saveOrUpdateCopy()

Hibernate3 applications should use createQuery() for all query execution, DELETE queries for bulk delete and merge() instead of saveOrUpdateCopy(). Existing applications may continue to use the deprecated methods.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 8:06 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
because they were redundant.

_________________
Max
Don't forget to rate


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.