Add soft-delete module: @SoftDelete (DELETED/ACTIVE/TIMESTAMP) vs @SQLDelete + @SQLRestriction on Hibernate 7.4.14.Final, H2 and PostgreSQL 17

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b7rnC7jppGGdHGESvy
This commit is contained in:
2026-10-28 18:22:03 +00:00
co-authored by Claude Sonnet 5.5
parent aea104f021
commit c9faf35e61
43 changed files with 2084 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
# javap of the shipped hibernate-core-7.4.14.Final.jar
$ javap -cp hibernate-core-7.4.14.Final.jar org.hibernate.annotations.SoftDelete
Compiled from "SoftDelete.java"
public interface org.hibernate.annotations.SoftDelete extends java.lang.annotation.Annotation {
public abstract java.lang.String columnName();
public abstract java.lang.String options();
public abstract java.lang.String comment();
public abstract org.hibernate.annotations.SoftDeleteType strategy();
public abstract java.lang.Class<? extends jakarta.persistence.AttributeConverter<java.lang.Boolean, ?>> converter();
}
$ javap -cp hibernate-core-7.4.14.Final.jar org.hibernate.annotations.SoftDeleteType
Compiled from "SoftDeleteType.java"
public final class org.hibernate.annotations.SoftDeleteType extends java.lang.Enum<org.hibernate.annotations.SoftDeleteType> {
public static final org.hibernate.annotations.SoftDeleteType ACTIVE;
public static final org.hibernate.annotations.SoftDeleteType DELETED;
public static final org.hibernate.annotations.SoftDeleteType TIMESTAMP;
public static org.hibernate.annotations.SoftDeleteType[] values();
public static org.hibernate.annotations.SoftDeleteType valueOf(java.lang.String);
public java.lang.String getDefaultColumnName();
static {};
}
$ javap -cp hibernate-core-7.4.14.Final.jar org.hibernate.annotations.SQLDelete
Compiled from "SQLDelete.java"
public interface org.hibernate.annotations.SQLDelete extends java.lang.annotation.Annotation {
public abstract java.lang.String sql();
public abstract boolean callable();
public abstract java.lang.Class<? extends org.hibernate.jdbc.Expectation> verify();
public abstract org.hibernate.annotations.ResultCheckStyle check();
public abstract java.lang.String table();
}
$ javap -cp hibernate-core-7.4.14.Final.jar org.hibernate.annotations.SQLRestriction
Compiled from "SQLRestriction.java"
public interface org.hibernate.annotations.SQLRestriction extends java.lang.annotation.Annotation {
public abstract java.lang.String value();
}