-->
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: ToString() used as the key in SysCache?
PostPosted: Wed Nov 16, 2005 2:14 pm 
Newbie

Joined: Tue Oct 11, 2005 2:44 pm
Posts: 12
Hi!

I am using a component as a composite identifier, and while caching a collection of the classes with composite id, all elements of the collection have the same values (but accurate id's).

While debugging (using SysCache), I found that the cache key is compositeId.ToString(), which, if not overriden, returns the name of the composite id class. Thus, all collection elements are retrieved using the same key, so they get assigned the same value.

Is this going to change in the future? If not, I think it should be added somewhere in the docs as a requirement.

Thanks,
Cris


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 16, 2005 5:21 pm 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
There are many known issues with caching already logged in Jira:

http://jira.nhibernate.org/browse/NH-451
http://jira.nhibernate.org/browse/NH-457
http://jira.nhibernate.org/browse/NH-442

We haven't decided the best course of action to fix the caching yet, but it will be after 1.0.1.


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.