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: HQL Delete Query with Named Parameters
PostPosted: Tue Jul 13, 2004 1:09 pm 
Regular
Regular

Joined: Mon Sep 29, 2003 9:39 am
Posts: 67
Is it possible to execute an HQL delete of several objects with named parameters? If so, how?

session.delete("SELECT x FROM X x WHERE x.level = :level");

That would be really nice.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 13, 2004 1:15 pm 
Regular
Regular

Joined: Mon Sep 29, 2003 9:39 am
Posts: 67
And then the javadoc was examined, and he said, "ah, this is good, I will use it first from now on..." They aren't named, but I think this will work for
what I want to do:
Code:
public int delete(String query, Object value, Type type) throws HibernateException;


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.