-->
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.  [ 2 posts ] 
Author Message
 Post subject: Programatically find cascading properties
PostPosted: Tue May 27, 2008 1:52 am 
Newbie

Joined: Wed Mar 05, 2008 3:11 am
Posts: 3
Hi all,

The title pretty much says what I am trying to do.
I have an object graph and what I want to do is walk the graph but only follow properties that have a certain cascade setting.

For example if I have the following object Graph
where ->-> represents a cascading relationship
and -> is a non cascading relationship
Code:
A->->B->C
       ->D

I want to in my method pass in A and be able to figure out that B is cascaded to so that i can recursivley call my method on B.

But, I'm having a real hard time trying to figure out if the property is cascading or not. How do I do this?


Top
 Profile  
 
 Post subject: annotations?
PostPosted: Wed Jun 04, 2008 5:23 am 
Newbie

Joined: Tue Dec 18, 2007 2:06 pm
Posts: 9
Are you using annotations? If yes, why not just read the @Cascade from the class.


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

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.