Hello All,
I am using Hibernate 3.2 with Annotations and had a question regarding proxies.
I have a scenario in which an object is being updated and during the operation, I only want to traverse entity relationships if I know it has already been loaded. This is required for performance reasons to reduce the number of queries.
For example, we may have a single entity loaded which has required relationships to other entities which are not loaded. During the save operation, I need to save other objects but only if they are new objects and the relationship is set. If other relationships are proxied, I don't want to traverse but bypass.
Anybody know if there is a way to determine if the relationship is actually set with a managed object.
Thanks alot,
Kurt
|