-->
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: Hibernate3 API question
PostPosted: Thu Sep 09, 2004 3:39 am 
Newbie

Joined: Tue Jan 27, 2004 3:26 pm
Posts: 18
I just started to port my projects to HB3-alpha. Everything works just fine. Of course I tried new features - especially my favourite "named-entity". Since started I wonder why there is no delete( String namedEntity, Object entity ) method? I'm not sure how HB3 could guess which exactly entity(-name) I'm passing into delete. Of course HB3 could guess entity-name if my object is already assosiated with session, but I cannot imagine how hibernate could guess the name when I pass transistent object with id. I relized that there is update( String entityName, Object entity ) method - so I'm a bit puzzled because these are "conceptually" similliar. Maybe someone could explain this?

Artur


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 09, 2004 4:28 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Yeah, I guess we will add this in the final release, I wondered about it. Add to JIRA.

For now, you can use Session.lock(), followed by Session.delete()


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.