dozer custom convertors for primitive types

Posted by koti on Stack Overflow See other posts from Stack Overflow or by koti
Published on 2010-04-20T10:48:59Z Indexed on 2010/04/20 10:53 UTC
Read the original article Hit count: 265

Filed under:
|

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..

© Stack Overflow or respective owner

Related posts about dozer

Related posts about java