• 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
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!