-->
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.  [ 4 posts ] 
Author Message
 Post subject: Can't evict an object from the Session
PostPosted: Fri Oct 03, 2003 5:29 am 
Newbie

Joined: Tue Aug 26, 2003 9:52 am
Posts: 15
Hello,

I'm having the following problem :

I'm trying to evict on object from the session but It's still there.

I'm using Hibernate 2.0.2, the entity concerned has no association and does not use any jcs caching.

What am I doing wrong ?

Thanks for your help.


Alain.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2003 5:35 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Does its key implement equals()/hashCode() correcty.


I suggest use of the debugger.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2003 2:12 pm 
Newbie

Joined: Tue Aug 26, 2003 9:52 am
Posts: 15
Thanks for the advice. Debugger showed eviction was ok we just happened to (re)load the entity after evicting it.

By the way. does rel 2.1 take into account HB-291 ( Select for update using a query.setLockMode(null, LockMode.UPGRADE) doesn"t work for Oracle. the key word OF gets add to the query).

Last thing (if I may) does rel 2.1 solve the 1+n queries on the one-to-one association ?

Thanks a lot.

Alain


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2003 2:16 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Quote:
does rel 2.1 take into account HB-291


No, I'll take a look at that sometime soon.

Quote:
does rel 2.1 solve the 1+n queries on the one-to-one association



ack! Hate that one. Our longest open bug. I won't get a chance to fix it 'til I get back to Australia I think. But I really do need to push it up to the top of the todo list.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.