Yeah, I saw those, but I was looking for those things that came up on the
Session.load() path. I had to ask the question, since I was trying to
discover the intent and seeming disparity between the two approaches.

The real question that I was trying to answer is: What would it take to
make a Session.load() with a lock cascade down through the associations?
It looks like two parts: implement applyLocks in Loader subclasses
(besides QueryTranslator and CriteriaLoader) and redo the whole
Session.load() chain down through the Loaders so that the LockMode
will be propagated. That's a pretty extensive change to the interfaces.

Should I be looking for a different approach here? Something short
of walking over the object at the application level and loading every
piece?

thanks,

-r



----- Original Message ----- 
From: "Gavin King" <[EMAIL PROTECTED]>
To: "Robert Streich" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, September 02, 2004 5:36 PM
Subject: Re: [Hibernate] locking


> Look harder. Not all Loader subclasses are in the loader package.
>
> Robert Streich wrote:
>
> >I'm trying to sort out the way locks are handled. All the queries seem to
> >dutifully run through
> >Loader.applyLocks(), but none of the subclasses of Loader override the
> >default implementation
> >which just returns the string that was passed. Instead, all of the
locking
> >seems to be generated
> >through EntityPersister.postInstantiate() where it creates a map of
Loaders
> >(SimpleEntityLoader)
> >indexed by LockMode. Each Loader is created with an SQL string that
already
> >includes the lock.
> >Then, when a lock is requested, it selects the Loader based on the
LockMode
> >that was requested.
> >
> >Can someone clarify this?
> >
> >thanks,
> >
> >robert
> >
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by BEA Weblogic Workshop
> >FREE Java Enterprise J2EE developer tools!
> >Get your free copy of BEA WebLogic Workshop 8.1 today.
> >http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> >_______________________________________________
> >hibernate-devel mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> >
> >
>
>
>



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to