Skip to content

Commit 305697a

Browse files
committed
0.9.77
1 parent 7d18bea commit 305697a

File tree

3 files changed

+1
-38
lines changed

3 files changed

+1
-38
lines changed

project/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
group=org.babyfish.jimmer
2-
version=0.9.76
2+
version=0.9.77

project/jimmer-sql/src/main/java/org/babyfish/jimmer/sql/ast/impl/mutation/SaveOptions.java

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,6 @@ default SaveOptions withSqlClient(JSqlClientImplementor sqlClient) {
7171
}
7272
return new SaveOptionsWithSqlClient(this, sqlClient);
7373
}
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-
}
8174
}
8275

8376
abstract class AbstractSaveOptionsWrapper implements SaveOptions {
@@ -236,27 +229,3 @@ public JSqlClientImplementor getSqlClient() {
236229
return sqlClient;
237230
}
238231
}
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-

project/jimmer-sql/src/main/java/org/babyfish/jimmer/sql/ast/impl/mutation/Saver.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ public Saver(
3939
) {
4040
this(
4141
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,
4842
options,
4943
con,
5044
type,

0 commit comments

Comments
 (0)