Class SoftDeleteHelper
java.lang.Object
org.hibernate.boot.model.internal.SoftDeleteHelper
Helper for dealing with
SoftDelete-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbindSoftDeleteIndicator(SoftDelete softDeleteConfig, SoftDeletable target, Table table, MetadataBuildingContext context) Creates and binds the column and value for modeling the soft-delete in the databasestatic SoftDeleteMappingImplresolveSoftDeleteMapping(SoftDeletableModelPart softDeletableModelPart, SoftDeletable bootMapping, String tableName, MappingModelCreationProcess creationProcess)
-
Constructor Details
-
SoftDeleteHelper
public SoftDeleteHelper()
-
-
Method Details
-
bindSoftDeleteIndicator
public static void bindSoftDeleteIndicator(SoftDelete softDeleteConfig, SoftDeletable target, Table table, MetadataBuildingContext context) Creates and binds the column and value for modeling the soft-delete in the database- Parameters:
softDeleteConfig- The SoftDelete annotationtarget- The thing which is to be soft-deletedtable- The table to which the soft-delete should be appliedcontext- The processing context for access to needed info and services
-
resolveSoftDeleteMapping
public static SoftDeleteMappingImpl resolveSoftDeleteMapping(SoftDeletableModelPart softDeletableModelPart, SoftDeletable bootMapping, String tableName, MappingModelCreationProcess creationProcess)
-