-->
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: Cascading behaviour can be overwritten?
PostPosted: Thu Feb 24, 2011 12:19 pm 
Newbie

Joined: Thu Feb 24, 2011 12:15 pm
Posts: 1
Hi all,

is there some possibility to overwrite the cascading behaviour at runtime?

I have

@OneToMany(mappedBy = "customer", fetch = FetchType.EAGER)
@Cascade( { CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<Letter> getCorrespondence() {
...

That is perfect in almost all cases, but in one case I want to persist without the cascading behaviour. Any way to do that?

Michael


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.