-->
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: Can you override orphanremoval's default implementation?
PostPosted: Wed Jan 12, 2011 3:37 pm 
Newbie

Joined: Wed Jan 12, 2011 3:28 pm
Posts: 1
The current project I am working on has the need to not hard delete anything. instead, I mark a column named "retired" as true when we do not want something to be shown in the application any longer.

My question is this, is there a way to override the default action of the orphanremoval process so that instead of the record getting deleted, I could simply mark the "retired" field as true and update the record. All tables have the same Bit field of retired, so this would apply to the entire application.

Thanks!


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.