Results 1 to 10 of 10
Like Tree1Likes
  • 1 Post By jashburn

Thread: how to perform soft delete?

  1. #1
    PinkRose is offline Member
    Join Date
    Feb 2014
    Posts
    17
    Rep Power
    0

    Default how to perform soft delete?

    Hi all,
    Can anyone help me, how to do soft delete?

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,105
    Rep Power
    6

    Default Re: how to perform soft delete?

    Generally when you post a question consisting of one short line, it does not contain enough actual information and context. Try asking your question a tiny bit more elaborate.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    jashburn is offline Senior Member
    Join Date
    Feb 2014
    Posts
    219
    Rep Power
    1

    Default Re: how to perform soft delete?

    I know soft delete as to mark something for deletion, take it out of use, but is not yet actually deleted. In a database record context it's so that it is easy to recover from, e.g., accidental deletion. Is this what you meant by "soft delete"? You'll need to elaborate the context - soft delete what, purpose, etc., taking into account this is a Java programming forum.
    PinkRose likes this.

  4. #4
    PinkRose is offline Member
    Join Date
    Feb 2014
    Posts
    17
    Rep Power
    0

    Default Re: how to perform soft delete?

    i am trying simple crud operation using jsp/servlet. i want the values to be delete in jsp, when i perform delete operation. but the values wont be delete in database. i am using postgresql.

  5. #5
    PinkRose is offline Member
    Join Date
    Feb 2014
    Posts
    17
    Rep Power
    0

    Default Re: how to perform soft delete?

    You are right jashburn

  6. #6
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,105
    Rep Power
    6

    Default Re: how to perform soft delete?

    ... So you have the problem of records not being deleted (A) and you then ask about a soft delete (B). If you want help with A, ask about A.

    Why don't you just share the code that you have so we can see where your bug is.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  7. #7
    PinkRose is offline Member
    Join Date
    Feb 2014
    Posts
    17
    Rep Power
    0

    Default Re: how to perform soft delete?

    Actually I have no idea about soft delete. I just need some guidance, how to perform soft delete operation.

  8. #8
    jashburn is offline Senior Member
    Join Date
    Feb 2014
    Posts
    219
    Rep Power
    1

    Default Re: how to perform soft delete?

    It seems that this is more of a design question rather than a coding question. For that, you'd want to go through The trouble with soft delete | Richard Dingwall to find out the approaches that might be suitable in your context.

    Soft deletes can be done at the database itself. For PostgreSQL, see:

    or just google using the search term postgresql "soft delete" (include the double-quotes in the search term). My knowledge on the database side of things is quite limited, I'm afraid.

  9. #9
    PinkRose is offline Member
    Join Date
    Feb 2014
    Posts
    17
    Rep Power
    0

    Default Re: how to perform soft delete?

    Thanks for your reply

  10. #10
    PinkRose is offline Member
    Join Date
    Feb 2014
    Posts
    17
    Rep Power
    0

    Default Re: how to perform soft delete?

    Thanks for your links jashburn. i perform a soft delete operation. it works fine.

Similar Threads

  1. Soft Token Source Code
    By Svangorden in forum Android
    Replies: 1
    Last Post: 07-27-2012, 01:21 PM
  2. Soft Coding.
    By Cruncher in forum Advanced Java
    Replies: 5
    Last Post: 06-13-2010, 09:56 PM
  3. Soft HashMap
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-12-2008, 08:45 PM
  4. Soft References
    By rickcharles_b in forum Advanced Java
    Replies: 0
    Last Post: 06-20-2007, 08:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •