farzad wrote:
Lock is not the intended operation for merging. Why don' t you use merge instead?
Farzad-
i don`t want to merge that object , i just want it to attach to the session so i could later call lazy association objects without LazyException. and too many select on lazy associations make application slower.
if i load that object by calling session load or get, database will be hit just once. but i supposed that operation lock should be nice solution for attaching obecjt to session, but it doesn`t look like that.