-->
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: Soft delete
PostPosted: Tue Mar 04, 2008 5:57 am 
Newbie

Joined: Tue Mar 04, 2008 5:38 am
Posts: 1
Hi all,
I am trying to use logical deletion in my database with hibernate. I am using annotations to apply a certain cascade strategy and I will like to use these annotations for softdelete as well. The problem is that if I use soft delete by adding a new flag true Hibernate does not know that this is my new deletion functionality and therefore does not apply cascading strategy.

Is there a way to make coexist Hibernate annotations with soft delete functionality??
Thanks!
Oscar


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 29, 2008 8:51 am 
Newbie

Joined: Sat Oct 14, 2006 10:49 am
Posts: 3
Location: Quilmes
Anyone have a response to this question!???. i can't believe that hibernate does not have a solution to this common problem.. i spend days looking for a solution in google, and there is none natural solution.... i even found one, that says you should subclass every persistible object and put a different discrimiator on each one... PLEASE!!.. this is very important..


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.