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: Update/Delete without instance of the object
PostPosted: Thu Apr 28, 2005 2:49 pm 
Newbie

Joined: Tue Apr 26, 2005 3:06 pm
Posts: 14
Location: Vitória - ES - Brasil
How I can carry through update and delete without searching to carry through one select and later the action (update/delete)? Select generated is very expensive, therefore some entities have high degree of relationship.

_________________
Roberto Marconi


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 28, 2005 6:03 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Hibernate can delete an object based on a non-initialized proxy representation of the object to be deleted (i.e., session.load() on a proxiable entity). In Hibernate2, the entity needs to be selected in order to do an update.

In Hibernate3, you can use the bulk DML-like HQL statements.


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.