Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Converting objects in java
Cristian Popovici
Ranch Hand
Posts: 32
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
you are mentioned about type cast or passing the values(property) from one object to another object?
Stefan Brandenberger
Greenhorn
Posts: 12
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Cristian
Maybe you mean something like the Appache Bean Utils?
http://commons.apache.org/beanutils/
BeanUtils.copyProperties(Object dest, Object orig)
lets yout copy the properties from one to another bean.
Stefan
Campbell Ritchie
Marshal
Posts: 79177
377
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thank you for that link, Stefan Brandenberger, and welcome to JavaRanch
Oh the stink of it! Smell my tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Data Structure that provides constant search time
Change Reference to Value
Convert Long to String inside JSF el expression
convert String into Object
convert hashmap <string, anytype > to hashMap<string, object>
More...