ydb-platform / yoj-project

YDB ORM for Java (YOJ) is a lightweight ORM for immutable entities. It has native support for YDB and is battle-tested.
Apache License 2.0
13 stars 12 forks source link

Experimental: Allow Entity IDs to be string-valued types #21

Closed nvamelichev closed 8 months ago

nvamelichev commented 9 months ago

This almost works already, except when matching entities by ID using in-memory table: this relies on EntityIdSchema.compare(ID, ID) which is inconsistent with ID.equals() in case of string-valued types. We should compare IDs as their toString() values and not their components in this case.

nvamelichev commented 8 months ago

Prototyping in https://github.com/ydb-platform/yoj-project/pull/22

nvamelichev commented 8 months ago

Closed in favor of #24