Is This Soft Delete Pattern Correct?

Profile Picture

KingSnu

OP
@snuchi.bsky.social
3 days ago

I added an is_deleted column to implement soft deletes. Just want to confirm this approach is correct.

``java @Query("UPDATE Post p SET p.isDeleted = true WHERE p.id = :id") void softDelete(@Param("id") Long id);

java