-->
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: disable cascade
PostPosted: Mon Mar 19, 2012 12:34 pm 
Newbie

Joined: Mon Mar 19, 2012 12:22 pm
Posts: 1
I have two class, Campaign and Country. My country table has fixed data and should not be changed in program.
Campaign has many-to-one relation to Country. I do not want to have cascade update/delete on this relations. And there is no cascade set up on Campaign class. But it still update the country table. How could I disable that?
Here is part of my configuration:
in Campaign


@ManyToOne
@JoinColumn(name="countryId", referenceColName="countryId"
private Country country;

Inside Country class, there is no any configuration and properties related to Campaign.


Thanks a lot.


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.