Java – Constants in dozer mappings

dozerjava

does anybody know how to put a constant value into an attribute with dozer? I haven't seen anything about that in the dozer's documentation

Best Solution

Not entirely sure what you mean - if you want Dozer to always populate BeanB.someField with a constant whenever you map from BeanA to BeanB?

You might want to register a custom converter for this mapping.