-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: YDB
PredicateStatement
incorrectly detected a string-value typ…
…e single ID field as the whole ID itself
- Loading branch information
1 parent
02f551e
commit 34c4018
Showing
11 changed files
with
118 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...tory-test/src/main/java/tech/ydb/yoj/repository/test/sample/model/MultiWrappedEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package tech.ydb.yoj.repository.test.sample.model; | ||
|
||
import lombok.NonNull; | ||
import tech.ydb.yoj.databind.converter.StringColumn; | ||
import tech.ydb.yoj.repository.db.Entity; | ||
import tech.ydb.yoj.repository.db.RecordEntity; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
public record MultiWrappedEntity( | ||
@NonNull Id id, | ||
@NonNull String payload, | ||
@Nullable OptionalPayload optionalPayload | ||
) implements RecordEntity<MultiWrappedEntity> { | ||
public record Id( | ||
@StringColumn StringWrapper itIsReallyString | ||
) implements Entity.Id<MultiWrappedEntity> { | ||
} | ||
|
||
public record StringWrapper(@NonNull String value) { | ||
@Override | ||
public String toString() { | ||
return value; | ||
} | ||
} | ||
|
||
public record OptionalPayload( | ||
@StringColumn @NonNull StringWrapper wrapper | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters