• Post Reply Bookmark Topic Watch Topic
  • New Topic

Converting objects in java  RSS feed

 
Cristian Popovici
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I want to convert a value object to another (move its attribute values to the other object).
I want to convert message objects to domain objects (both are value objects). Is there a framework / api to do this?

Thanks,
Cristian.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you are mentioned about type cast or passing the values(property) from one object to another object?
 
Stefan Brandenberger
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cristian

Maybe you mean something like the Appache Bean Utils? http://commons.apache.org/beanutils/

lets yout copy the properties from one to another bean.

Stefan
 
Campbell Ritchie
Marshal
Posts: 56525
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for that link, Stefan Brandenberger, and welcome to JavaRanch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!