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
@Query(value = "select * from partner_field", rowMapperClass = PartnerFieldRowMapper.class)
and seems I can not inject anything in PartnerFieldRowMapper since it is not a spring bean. (?)
--
I understand that in this case I would rather do join the table and fetch what I want fro rs as is. But if speaking of flexibility. Theoretically this mapper could call some other services to do the job. Especially it is true for older data models when combination of Repositories and mappers could hide the underlying complexity and still be able to build desirable aggregate root
Sergey80 opened DATAJDBC-430 and commented
Say, I want to do this:
now
partnerFieldTypeRepository
is null.
and I use it like this:
and seems I can not inject anything in PartnerFieldRowMapper since it is not a spring bean. (?)
--
I understand that in this case I would rather do join the table and fetch what I want fro rs as is. But if speaking of flexibility. Theoretically this mapper could call some other services to do the job. Especially it is true for older data models when combination of Repositories and mappers could hide the underlying complexity and still be able to build desirable aggregate root
Referenced from: pull request #249
The text was updated successfully, but these errors were encountered: