Skip to content

Supporting SQL Function around inserting value in Criteria #268

Open
@IvanKonevJr

Description

@IvanKonevJr

We can use annotation to insert value in function:

data class Doc(
    @Id id: Long,
    english: String,
    @Fun("translate('french', english)") french: String
)

in annotation Fun("translate('french', ?)") we can select character "?" and get value from any primitive type of "french" field

then repository.save(doc) generate:

insert into doc(id,english,french) values(123, 'good day', translate('french', english))

this will greatly simplify the logic and source code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: blockedAn issue that's blocked on an external project change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions