Skip to content

Commit

Permalink
Change new constructor in AbstractDelegatingTable
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Lavrukov authored and nvamelichev committed Dec 27, 2024
1 parent c4c51c7 commit 6e9c6ab
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.google.common.reflect.TypeToken;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NonNull;
import tech.ydb.yoj.ExperimentalApi;
import tech.ydb.yoj.databind.expression.FilterExpression;
import tech.ydb.yoj.databind.expression.OrderExpression;
Expand All @@ -29,9 +28,8 @@ protected AbstractDelegatingTable() {
}

@ExperimentalApi(issue = "https://github.com/ydb-platform/yoj-project/issues/32")
protected AbstractDelegatingTable(@NonNull String tableName) {
EntitySchema<T> schema = EntitySchema.of(resolveEntityType());
this.target = BaseDb.current(BaseDb.class).table(new TableDescriptor<T>(schema.getType(), tableName));
protected AbstractDelegatingTable(TableDescriptor<T> tableDescriptor) {
this.target = BaseDb.current(BaseDb.class).table(tableDescriptor);
}

@SuppressWarnings("unchecked")
Expand Down

0 comments on commit 6e9c6ab

Please sign in to comment.