Soft deletes handle "deletions" from a database table by setting a column in the table to indicate deletion.
May be defined at various levels
jakarta.persistence.ElementCollection or
jakarta.persistence.ManyToMany table.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | SoftDelete.UnspecifiedConversion
Used as the default for SoftDelete#converter(), indicating that dialect and settings resolution should be used. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Class | converter()
(Optional) Conversion to apply to determine the appropriate value to store in the database. |
| public SoftDeleteType |
| columnName | back to summary |
|---|---|
| public String columnName() (Optional) The name of the column. Default depends on the strategy being used. | |
| converter | back to summary |
|---|---|
| public Class (Optional) Conversion to apply to determine the appropriate value to store in the database. The "domain representation" can be:
By default, values are stored as booleans in the database according to the dialect and settings API Note The converter should never return | |
| strategy | back to summary |
|---|---|
| public SoftDeleteType strategy() The strategy to use for storing/reading values to/from the database. The strategy also affects the default column name. | |