File tree Expand file tree Collapse file tree 3 files changed +1
-38
lines changed
jimmer-sql/src/main/java/org/babyfish/jimmer/sql/ast/impl/mutation Expand file tree Collapse file tree 3 files changed +1
-38
lines changed Original file line number Diff line number Diff line change 1
1
group =org.babyfish.jimmer
2
- version =0.9.76
2
+ version =0.9.77
Original file line number Diff line number Diff line change @@ -71,13 +71,6 @@ default SaveOptions withSqlClient(JSqlClientImplementor sqlClient) {
71
71
}
72
72
return new SaveOptionsWithSqlClient (this , sqlClient );
73
73
}
74
-
75
- default SaveOptions withQueryable (ImmutableType type ) {
76
- if (this .getMode () != SaveMode .INSERT_IF_ABSENT ) {
77
- return this ;
78
- }
79
- return new SaveOptionsWithQueryable (this , type );
80
- }
81
74
}
82
75
83
76
abstract class AbstractSaveOptionsWrapper implements SaveOptions {
@@ -236,27 +229,3 @@ public JSqlClientImplementor getSqlClient() {
236
229
return sqlClient ;
237
230
}
238
231
}
239
-
240
- class SaveOptionsWithQueryable extends AbstractSaveOptionsWrapper {
241
-
242
- private final UpsertMask <?> upsertMask ;
243
-
244
- SaveOptionsWithQueryable (SaveOptions raw , ImmutableType type ) {
245
- super (raw );
246
- this .upsertMask = UpsertMask .of (type .getJavaClass ()).forbidUpdate ();
247
- }
248
-
249
- @ Override
250
- public SaveMode getMode () {
251
- return SaveMode .UPSERT ;
252
- }
253
-
254
- @ Override
255
- public @ Nullable UpsertMask <?> getUpsertMask (ImmutableType type ) {
256
- if (type == upsertMask .getType ()) {
257
- return upsertMask ;
258
- }
259
- return super .getUpsertMask (type );
260
- }
261
- }
262
-
Original file line number Diff line number Diff line change @@ -39,12 +39,6 @@ public Saver(
39
39
) {
40
40
this (
41
41
new SaveContext (
42
- // `INSERT_IF_ABSENT` must be changed to
43
- // `UPSERT` when fetcher is specified to
44
- // get the ids so that fetch can work
45
- // fetcher != null ?
46
- // options.withQueryable(type) :
47
- // options,
48
42
options ,
49
43
con ,
50
44
type ,
You can’t perform that action at this time.
0 commit comments