• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using dozer for copying java objects

 
Narendra Kadali
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am new to dozer framework. I want to copy some objects to a Map using dozer.
For instance Belwo is the example scenario which reflects my requirement.
public void createUser(String userId,String password,String firstname)
{
Map<String,String> userMap=new HashMap<String,String>();
userMap.put("LoginId",userId);
userMap.put("password",password);
userMap.put("FirstName",firstName);
createUSerInApp(userMap);
}
I want to automatically copy the required properties like userId,password,firstname into userMap using dozer.
Can any one give any suggestions.
Thanks,
Narendra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic