-->
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: Finding soft-deleted records?
PostPosted: Thu Jun 07, 2012 4:48 pm 
Newbie

Joined: Fri Dec 07, 2007 6:19 pm
Posts: 2
All,

I have a few searches that need to include softly-deleted records. I have not been able to figure out how to do this. I've tried both Criteria and HQL queries. I've also tried tricking the query by adding "or is_deleted=1" but that doesn't work, either. Any predicate I supply seems to be and'ed with the @Where value. Is it possible to find deleted records?

I have some doubts about the requirement in the first place, so I might push back a bit more. Even if I can get rid of this requirement, it seems I might run in to issues in the future when I try to create a new record whose natural key conflicts with a deleted record.

I'm using 3.6.9.

thanks

John


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.