@@ -21,9 +21,24 @@ Hibernate supports soft delete for both <<soft-delete-entity,entities>> and <<so
21
21
22
22
Soft delete support is defined by 3 main parts -
23
23
24
- 1. The <<soft-delete-column,column>> which contains the indicator.
25
- 2. A <<soft-delete-conversion,conversion>> from `Boolean` indicator value to the proper database type
26
- 3. A <<soft-delete-type,strategy>> for interpreting the stored indicator values.
24
+ 1. A <<soft-delete-type,strategy>> for interpreting the stored indicator values.
25
+ 2. The <<soft-delete-column,column>> which contains the indicator.
26
+ 3. A <<soft-delete-conversion,conversion>> from `Boolean` indicator value to the proper database type
27
+
28
+
29
+ [[soft-delete-type]]
30
+ ==== Strategy - SoftDeleteType
31
+
32
+ Given truth values, there are 2 valid ways to interpret the values stored in the database. This
33
+ interpretation is defined by the SoftDeleteType enumeration and can be configured per-usage using
34
+ `@SoftDelete(..., strategy=ACTIVE)` or `@SoftDelete(..., strategy=DELETED)` -
35
+
36
+ ACTIVE::
37
+ Tracks rows which are active. A `true` value in the database indicates that the row is active
38
+ (non-deleted); a `false` value indicates inactive (deleted).
39
+ DELETED::
40
+ Tracks rows which are deleted. A `true` value in the database indicates that the row is deleted;
41
+ a `false` value indicates that the row is non-deleted.
27
42
28
43
29
44
[[soft-delete-column]]
@@ -139,17 +154,3 @@ The `@SoftDelete` annotation may also be placed at the package level, in which c
139
154
entities and collections defined within the package.
140
155
141
156
142
- [[soft-delete-type]]
143
- ==== Strategy - SoftDeleteType
144
-
145
- Given truth values, there are 2 valid ways to interpret the values stored in the database. This
146
- interpretation is defined by the SoftDeleteType enumeration and can be configured per-usage using
147
- `@SoftDelete(..., strategy=ACTIVE)` or `@SoftDelete(..., strategy=DELETED)` -
148
-
149
- ACTIVE::
150
- Tracks rows which are active. A `true` value in the database indicates that the row is active
151
- (non-deleted); a `false` value indicates inactive (deleted).
152
- DELETED::
153
- Tracks rows which are deleted. A `true` value in the database indicates that the row is deleted;
154
- a `false` value indicates that the row is non-deleted.
155
-
0 commit comments