programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
agilob to Java · 2 years ago

Soft delete and JPA version property - Vlad Mihalcea

vladmihalcea.com

external-link
message-square
0
link
fedilink
10
external-link

Soft delete and JPA version property - Vlad Mihalcea

vladmihalcea.com

agilob to Java · 2 years ago
message-square
0
link
fedilink
Introduction In this article, we are going to see how we can implement a soft delete mechanism when the JPA entity features a version property. If you are not using a version property for optimistic locking, then you can implement the soft delete strategy, as explained in this article. Domain Model Let’s assume we have the following Post, PostDetails, PostComment, and Tag entities that extend the SoftDeletable base class, as illustrated by the following diagram: Soft delete when the entity has a JPA version property Now, we want to instruct Hibernate to... Read More
alert-triangle
You must log in or register to comment.

Java

java

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 4 users / week
  • 59 users / month
  • 151 users / 6 months
  • 451 local subscribers
  • 1.73K subscribers
  • 204 Posts
  • 332 Comments
  • Modlog
  • mods:
  • Ategon
  • JackbyDev
  • Tom
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org