Skip to content

Commit a45dc7a

Browse files
committed
CAY-2969 Extender API for "soft" delete
shortner config method name
1 parent f0eec85 commit a45dc7a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cayenne/src/main/java/org/apache/cayenne/configuration/runtime/CoreModuleExtender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public CoreModuleExtender externalTransactions() {
119119
* @param columnName the name of the BOOLEAN column marking soft-deleted rows
120120
* @since 5.0
121121
*/
122-
public CoreModuleExtender useSoftDeleteIfColumnPresent(String columnName) {
122+
public CoreModuleExtender softDeleteIfColumnPresent(String columnName) {
123123
binder.bind(DeleteDbRowOpFactory.class).toInstance(new ConditionalSoftDeleteDbRowOpFactory(columnName));
124124
return this;
125125
}

cayenne/src/test/java/org/apache/cayenne/access/SoftDeleteIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class SoftDeleteIT {
3939
@RegisterExtension
4040
static final CayenneTestsEnv env = CayenneTestsEnv
4141
.forProject(CayenneProjects.SOFT_DELETE_PROJECT)
42-
.withExtraModules(b -> CoreModule.extend(b).useSoftDeleteIfColumnPresent("DELETED"));
42+
.withExtraModules(b -> CoreModule.extend(b).softDeleteIfColumnPresent("DELETED"));
4343

4444
private TableHelper tSoftDelete;
4545

0 commit comments

Comments
 (0)