You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to upgrade from Micronaut 2.4.0 to 2.5.1 has introduced a compile time incompatibility in my repository methods that causes the build to fail.
Repository methods, annotated with Query(value = "INSERT/UPDATE/DELETE ...", readOnly = false) and Executable, that have a numeric return type (long in my use case) prevent the build from succeeding. The behaviour is not documented in the breaking changes against the release of 2.5.x, and was not present in previous versions.
Task List
Steps to reproduce provided
Stacktrace (if present) provided
Example that reproduces the problem uploaded to Github
Full description of the issue provided (see below)
Steps to Reproduce
Create an Entity class (annotated with @entity and @table)
Create a Repository interface that extends io.micronaut.data.repository.CrudRepository<Entity, Id>
Within the repository interface, define methods with the signatures below
Run the Micronaut application with version 2.4.0 and version 2.5.1
Description
Attempting to upgrade from Micronaut 2.4.0 to 2.5.1 has introduced a compile time incompatibility in my repository methods that causes the build to fail.
Repository methods, annotated with Query(value = "INSERT/UPDATE/DELETE ...", readOnly = false) and Executable, that have a numeric return type (long in my use case) prevent the build from succeeding. The behaviour is not documented in the breaking changes against the release of 2.5.x, and was not present in previous versions.
Task List
Steps to Reproduce
Expected Behaviour
The application should compile and run, and when executed, the methods should return the modified row count.
Actual Behaviour
The application fails to compile.
Environment Information
Example Application
https://github.com/Hc747/micronaut-repository-regression
The text was updated successfully, but these errors were encountered: