-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Any way to determine if an entity relationship is a proxy?
PostPosted: Sun Mar 18, 2007 6:31 pm 
Beginner
Beginner

Joined: Wed Jan 03, 2007 7:47 pm
Posts: 23
Location: Richardson, Texas
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.