Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
on Apr 3, 2010 4:50 PM by 843807
Custom/Value Objects with Java Bean
Feb 8, 2010 11:16 PM
this is actaully a commons beanutil question but hoping this forum is a good spot for it.
I have a problem with custom objects and java beans
private MyCustomNumber someProp;
//getter and setter
I am having alot of difficult in working with custom objects and binding them using commons bean.
PropertyUtils doesn't seem to have type conversion, so i looked into BeanUtils
However the problem I have, some of my properties are collections, but BeanUtils.getProperty() converts everything to a string ( very anoying )
I need to use BeanUtils.setProperty() so I can do the type conversion, but it just doesn't seem right to
set properties using BeanUtils.setProperty() and
get properties using PropertyUtils.getProperty() just so I can support custom value objects and collections as bean properties.
Can anyone give me some advice?
This content has been marked as final.
Show 1 reply
Re: Custom/Value Objects with Java Bean
Apr 3, 2010 4:50 PM
in response to
Override BeanUtils.getProperty and make it do what you want.