-->
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.  [ 5 posts ] 
Author Message
 Post subject: how can I change the value of cascade attribute on runtime
PostPosted: Thu Aug 04, 2005 4:01 pm 
Newbie

Joined: Thu Aug 04, 2005 3:40 pm
Posts: 3
Location: Programming
I'm need to change the way of objects are connected wiht cascade attribute
for example in the beginning in my xml map file I has a cascade="save-update" set, but in one moment when my application is running I want to change it just to cascade="save" or another value.

Any help
thanks

_________________
Hello world, Java is coming


Top
 Profile  
 
 Post subject: Re: how can I change the value of cascade attribute on runti
PostPosted: Thu Aug 04, 2005 4:06 pm 
Beginner
Beginner

Joined: Tue Jul 12, 2005 10:27 am
Posts: 23
Naster wrote:
I'm need to change the way of objects are connected wiht cascade attribute
for example in the beginning in my xml map file I has a cascade="save-update" set, but in one moment when my application is running I want to change it just to cascade="save" or another value.

Any help
thanks


I don't think you can do that. You can change the fetch mode, but not how it handles cascades. Unless it's an undocumented feature.

What are you trying to do exactly?

_________________
- Richard Burton


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 04, 2005 4:16 pm 
Newbie

Joined: Thu Aug 04, 2005 3:40 pm
Posts: 3
Location: Programming
Ok, i agree, I am new student in this world and i want to learn most is possible
but i think if i can change tha map file relationed with specific bean object
in one xml has a cascade="save-updated" set and similary another xml with cascade="save" set then i can do what i said before.

tell me what about is

_________________
Hello world, Java is coming


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 04, 2005 4:21 pm 
Beginner
Beginner

Joined: Tue Jul 12, 2005 10:27 am
Posts: 23
Are you looking not to update a class and just save it?

save-update is used to save and update a class and there is no cascade="save".

_________________
- Richard Burton


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 04, 2005 4:26 pm 
Newbie

Joined: Thu Aug 04, 2005 3:40 pm
Posts: 3
Location: Programming
forgot the values can take cascade, focus in what i told you about change de xml file that mapped a X class whit another xml file in runtime

is possible to do it?

_________________
Hello world, Java is coming


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.