Re: DataObjectUtils.objectForPK

From: Michael Lepine (mikelepin..mail.com)
Date: Wed Nov 28 2007 - 16:09:52 EST

  • Next message: Malcolm Edgar: "Re: [JIRA] Created: (CAY-925) Support Entity/Table scope caching"

    Okay, thank you.

    On Nov 28, 2007 3:06 PM, Aristedes Maniatis <ar..sh.com.au> wrote:

    >
    > On 29/11/2007, at 7:55 AM, Michael Lepine wrote:
    >
    > > I noticed that the convenience methods in the DataObjectUtils class
    > > only
    > > execute a query if the object is not already cached. Is there a way
    > > to force
    > > the methods to issue a query to the database?
    >
    > After you get the object you can set its persistent state to HOLLOW.
    > Then the next time you access its attributes, the object will be
    > refaulted from the database.
    >
    > Ari
    >
    >
    >
    > -------------------------->
    > ish
    > http://www.ish.com.au
    > Level 1, 30 Wilson Street Newtown 2042 Australia
    > phone +61 2 9550 5001 fax +61 2 9550 4001
    > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Nov 28 2007 - 16:10:26 EST