Skip to content

Commit

Permalink
#32 Support multiple tables under one entity (clean up)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Galiamichev committed Dec 27, 2024
1 parent 127e982 commit 03012e0
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,6 @@ public <T extends Entity<T>> Table<T> table(Class<T> c) {
return new YdbTable<>(c, this);
}

/**
* WARNING!!! This method won't work if id's in different tables have intersections. The restriction will be eliminated in future
* versions
*/
@Override
@ExperimentalApi(issue = "https://github.com/ydb-platform/yoj-project/issues/32")
public <T extends Entity<T>> Table<T> table(@NonNull TableDescriptor<T> descriptor) {
return new YdbTable<>(descriptor, this);
}

@Override
public <T extends Entity<T>> Table<T> table(TableDescriptor<T> tableDescriptor) {
return new YdbTable<>(tableDescriptor, this);
Expand Down

0 comments on commit 03012e0

Please sign in to comment.