We're using Spring Data 3.5.5 and face the warning
ReturnedType - No constructor parameter names discovered. Compile the affected code with '-parameters' instead or avoid its introspection: OurDtoClass
Apparently it is printed after #3225
However in our particular case it seems redundant:
in our repository we have a single method returning that class
@Query("""
select new <OurDtoClass>(optionItem.id, optionItem.name, optionItem.path)
from #{#entityName} option JOIN option.optionItem optionItem
where ....
""")
@Override
Set<OurDtoClass> find...
and for this particular case Spring Data should have no issues with parameter names - we call the constructor explicitly in the query and don't need any guessing - the arguments will be referenced by their natural order and not by names.
Is it possible to remove the warnings for such cases?
We're using Spring Data 3.5.5 and face the warning
Apparently it is printed after #3225
However in our particular case it seems redundant:
in our repository we have a single method returning that class
and for this particular case Spring Data should have no issues with parameter names - we call the constructor explicitly in the query and don't need any guessing - the arguments will be referenced by their natural order and not by names.
Is it possible to remove the warnings for such cases?