Skip to content

Do we want to support a boolean return value for @Query("UPDATE... ? #925

Open
@njr-11

Description

@njr-11

Currently the Query Javadoc requires void, int, or long.

A TCK test was testing a boolean return type, but is being changed in #924 as the resolution to challenge #923 because the Javadoc does not currently permit boolean.

boolean would be trivial to implement, with true corresponding to a numeric result > 0, and false corresponding to a numeric result of 0.

boolean could be convenient when writing an DELETE or UPDATE statement (such as the one in the TCK) where there can be at most 1 matching entity, often due to querying based on the Id.

I'm fine with adding boolean, but the spec is also okay without it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    designImprovements or additions to designdocumentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions