Soft delete an entity in Grails with Hibernate Filters Plugin
        Posted  
        
            by 
                canotto90
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by canotto90
        
        
        
        Published on 2012-09-17T21:31:30Z
        Indexed on 
            2012/09/17
            21:37 UTC
        
        
        Read the original article
        Hit count: 547
        
I was looking for a way to avoid deleting my users from DB, but instead to mark them as deleted and don't bring them back in queries.
I found this plugin http://grails.org/plugin/hibernate-filter, which was a great tool for the task.
But when I tried to implement my solution, I passed trought same problems whose solutions wheren't (or I was not able to find) on internet.
So, next, I describe the way that I solve the problem of soft delete.
© Stack Overflow or respective owner