I am using dozer mapper. How i can set my default value to field if it is empty?

StackOverflow https://stackoverflow.com/questions/4931033

  •  30-10-2019
  •  | 
  •  

Question

i need co convert a lot of string fields, and if field is empty, i want to set my own value. How can i do it? Write setters to all fields, i think it's not the best solution. Are there options in dozer mapper, for this operation?
Also i can write my own converter, but i want to know, is there any universal solutions?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top