Closed RohanSenguptaMantisPro closed 2 months ago
Yes, the null check is done before the hook is applied. Doing the custom hook as you showed is the best way.
I also don't plan to change this, as it would affect more things and is difficult to do. Especially since there is already a good solution with the hook.
Indeed, using Custom Hooks works well. I just needed to figure out the order of executions. It would be great if this information were added to the documentation under the Annotation Properties
section.
Thanks for the review.
Good idea, I will update the docs
Problem :
Here,
ignoreNull
works in normal conditions, but when used withhooks
, after the hooks are executed and converted empty strings toNull
, then when usedtoMap()
it doesn't ignore theNull
values which were converted by theCustomEmptyStringToNullHook
.hook implementation :
They are not working together.
So similarly as @schultek mentioned : ( quoted below )
This is the working solution now, using customHooks to replicate the functionality of
ignoreNull:true
applying this hook to the
SearchUserQueryParams
class.