-->
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.  [ 5 posts ] 
Author Message
 Post subject: caching subclasses only
PostPosted: Mon Feb 16, 2004 6:49 pm 
Newbie

Joined: Thu Oct 23, 2003 2:58 am
Posts: 4
hi !

is there a specific reason, why hibernate does not permit the caching of subclasses ?

thx


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2004 3:48 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
It does.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2004 5:19 am 
Newbie

Joined: Thu Oct 23, 2003 2:58 am
Posts: 4
not sure you did understand my question.

I have the following class-tree:

Party <- Organization <- Company

(of course only a small fraction of the tree)

i only want to cache companies but not all kind of parties. when i specify <class-cache class="....Company" usage="nonstrict-read-write"/>

in my hibernate.cfg.xml, i get an exception telling me that only root class caching is allowed !

for my application being able to only cache companies is essential


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2004 1:13 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Well, thats different. You want to cache /only/ the subclass. This is not supported. Quite reasonably, IMO.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2004 2:16 pm 
Newbie

Joined: Thu Oct 23, 2003 2:58 am
Posts: 4
hmmm - do you mean it's reasonably to not support it - or that it would be reasonably to support it ?

i think that once you have complex models - a party model is i think one of those - you have to be able to cache only parts of your model. in my case companies get updated only once in a while - other parts of the party model instead more often.

but ok - i will try to live with this *feature* - somehow.


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