Beginner |
|
Joined: Thu Nov 11, 2004 12:18 pm Posts: 37 Location: Baltimore, MD
|
Accessing a detached entity shouldn't be a problem in most cases. The one situation where it will fail is if you have lazy-loaded relationships on that entity.
In any case, perhaps these will help you (from the hibby docs):
"The lock() method also allows an application to reassociate an object with a new session. However, the detached instance has to be unmodified!"
"It is possible to re-load an object and all its collections at any time, using the refresh() method. This is useful when database triggers are used to initialize some of the properties of the object." (It sound like you don't want to be reloading though.)
You might want to track down the exact cause of this TransientObjectException, because that doesn't strike me as something that would occur when using a detached instance.
_________________ -Chris
|
|