Hibernate Soft Delete: @SoftDelete Example
Since version 6.4, Hibernate @SoftDelete annotation provides first-class support for soft delete feature and transparently manages the indicator column name and values.
Since version 6.4, Hibernate @SoftDelete annotation provides first-class support for soft delete feature and transparently manages the indicator column name and values.
Learn to track or audit the @Entity creation and updation timestamps using Spring Data annotations, JPA lifecycle callbacks, Hibernate and Envers library.
JPA delete query example. Learn to use native SQL DELETE query in JPA using EntityManager’s executeUpdate() method.
JPA named query update example. Learn to use @NamedNativeQuery annotation to execute SQL update queries using EntityManager.cexecuteUpdate().
Learn to define and execute a named native SQL query using Hibernate @NamedNativeQuery annotation with examples.
Learn to use the Hibernate @Immutable annotation to create immutable entities, similar to immutable classes in Java, a rather well-known concept.
Learn the basics and usage of JPA hibernate annotations used for creating entities, associations and named queries.
Learn the difference between natural id and primary id, @NaturalId annotation and various APIs to load persistent and proxy entities.
HowToDoInJava provides tutorials and how-to guides on Java and related technologies.
It also shares the best practices, algorithms & solutions and frequently asked interview questions.