dozer custom convertors for primitive types
- by koti
the below url has an example on dozer custom convertors..
http://stackoverflow.com/questions/1931212/map-collection-size-in-dozer
but when i tried that example its giving the exception like this..
Type: null
Source parent class: dozerPackage.Source
Source field name: images
Source field type: class java.util.ArrayList
Source field value: [www, eee]
Dest parent class: dozerPackage.Destination
Dest field name: numOfImages
Dest field type: int
org.dozer.MappingException: Destination Type (int) is not accepted by this Custom Converter (dozerPackage.TestCustomFieldConverter)!
is there any way that i can return the primitive types from dozer custom convertors..