Re: [castor-dev] Caching question

Werner Guttmann <[email protected]> Fri, 12 Feb 2010 20:18:45 +0100
Newsgroups gmane.comp.java.castor.devel
Message-ID <[email protected]>
Hi August,

my guess is that you will *not* get any cached verions of Item 
instances. Here's why: when Castor resolves a relation between two 
classes (object instances), it will eventually issue a

Database.load(Item.class, ...)

down the line. If there's no cache enabled, Castor will load the actual 
objects (their values) from the database.

Cheers
Werner

On 11.02.2010 23:28, August Detlefsen wrote:
> I have a mapped object with a number of layers of sub objects:
>
> Dashboard ->  Section (ArrayList) ->  SectionItem (ArrayList) ->
> Item
>
> Item has cache-type="none" specified in the mapping, but all of the
> other classes in the tree have no cache-type specified and thus use
> the default count-limited cache.
>
> My question is: If I make an update to an Item, and then db.load the
> main Dashboard object, will it include the newly updated Item, or
> will I get a cached Dashboard object that also includes an older
> cached version of the Item that was just modified?
>
> Thanks, August
>
>
>
>
>
>
> ---------------------------------------------------------------------
>
>
To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email