views:

15

answers:

0

I wanted to add an Object of a certain type to an ArrayList using Dozer. For ex: public class Source { private String id= null; private String value= null; }

public class Destination { private List dest = null; public List getDest(){ return des; } } What I want is - Create an instance of Source and hydrate the attributes (id and value), and then add it to the list dest in the class Destination. I could have written a custom converter, and added the source if it was readily available. But in this case, I'm not sure how to write a generic CustomConverter? Any help is appreciated..