ydb-platform / ydb-platform/ydb-java-dialects

feat: Support adding @YdbType annotation to method parameters

Open
#173 10 comments 1 reaction 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.