Skip to content

Commit

Permalink
Query multiple tables using one entity (better format)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Galiamichev committed Nov 25, 2024
1 parent 4e127c8 commit 1c534da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ static <T> T current(Class<T> type) {

<T extends Entity<T>> Table<T> table(Class<T> c);

@ExperimentalApi(issue="https://github.com/ydb-platform/yoj-project/issues/32")
@ExperimentalApi(issue = "https://github.com/ydb-platform/yoj-project/issues/32")
default <T extends Entity<T>> Table<T> table(Class<T> c, String name) {
return table(c);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import javax.annotation.Nullable;

@ExperimentalApi(issue="https://github.com/ydb-platform/yoj-project/issues/32")
@ExperimentalApi(issue = "https://github.com/ydb-platform/yoj-project/issues/32")
public record EntityDescriptor<E extends Entity<E>>(Class<E> clazz, @Nullable String tableName) {
public String getTableName(@NonNull EntitySchema<?> schema) {
return tableName != null ? tableName : schema.getName();
Expand Down

0 comments on commit 1c534da

Please sign in to comment.