micronaut-data
micronaut-data copied to clipboard
micronaut-data-r2dbc does not recognize inherited Introspected annotation
Expected Behavior
Using an annotation like @Serdeable
that has @Introspected
, I would expect the repository to recognize the type as a dto projection
Actual Behaviour
If @Introspected
is not specifically on the type exactly, the repository will not recognize the type as a dto and try a different entity to dto path than the correct one
Steps To Reproduce
- Make a project with r2dbc and micronaut-serialization
- Create a table, entity, repository, and dto
- Mark dto as
@Serdeable
- Make a repository method that returns the dto
- Try to use it and observe the projection fail
The branch linked below has tests showing this happening.
Environment Information
jdk 11 amazon corretto macos 12.3.1
Example Application
https://github.com/rawilder/r2dbc-dto-projections/tree/dto-projections-introspected
Version
3.4.2