-->
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: What is the replacement for Session.delete in 3beta?
PostPosted: Wed Jan 05, 2005 5:47 pm 
Newbie

Joined: Tue Aug 31, 2004 10:53 am
Posts: 4
Hello:
I'm trying to migrate to Hibernate 3beta and I noticed that Session.delete(String) methods have been deprecated. There is a vague comment explaining that we should use createQuery instead. I can't figure out how to use "createQuery" in order to delete records returned by the query. Could somebody shed some light on this?

Thanks a lot,
Alexander


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 05, 2005 6:01 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Hibernate 3.0 final will support the new JSR-220 DELETE and UPDATE queries. For now, stick with the deprecated method.


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.