ydb-platform / ydb-platform/ydb-java-dialects
feat: Support adding @YdbType annotation to method parameters
Open
@KirillKurdyukov is already working on this.
Since Feb 13, 2025.
pending-design
- Dominant language
- Java
- Stars
- 78
- Forks
- 24
- Avg merge
- 8h 19m
- Merged PRs (30d)
- 15
Description
To cover the following (and all similar) case:
interface MyRepository extends ListCrudRepository<MyEntity, String> {
@Query(
"""
SELECT <....>
<....>
LIMIT :limit
"""
)
List<MyEntity> findWithLimit(@Param("limit") long limit);
}
The inferred limit parameter type here is Int64, while YDB requires it to be exaclty UInt64.
There are other cases where implicit type conversion fails. So a way to control this behavior would be great. An existing @YdbType annotation seems like a good solution.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.