Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

what do I need to do to use BeanUtils.copyProperties?

Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy Ranchers.

I am facing some problems while making a value Object.
I am trying to use BeanUtils.copyProperties method and copy all properties form the formBean to the ValueObject.

From the tutorials that I have been thru I have seen that a value object overrides the toString method and returns

The problem is that I cannot seem to find a lang package inside the org.apache.commons. package (so that I can use the ReflectionToStringBuilder API)

The question is.. do I really need to do all this i.e.(use the ReflectionToStringBuilder) without it can I not use the BeanUtils.copyPorperties? Because without this the properties dont seem to get copied..
Now I am super curious what sports would be like if we allowed drugs and tiny ads.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic