Hello Everyone:BeanUtils follows the naming conventions in the JavaBeans specification:
My very first message to any of these lists...
I'm trying to use PropUtils.copyProperties() and BeanUtils.copyProperties() to copy from a DynaBean (from a ResultSetDynaClass) to a regular JavaBean.
The JavaBean has getter/setter methods in the following form: getOrderNumber()/setOrderNumber(String on) (mixed Case - following JavaBeans specs)
The corresponding property in the DynaBean is "ordernumber" (all lower case - as derived from a Table's column names).
The copyProperties() do not copy the ordernumber property from the DynaBean to my JavaBean.
First: I hope I'm wrong, but is this because my accessor methods have
mixed case.
Second: How to overcome this? Are there any other utility methods to
copy beans that I'm not aware of? I'm starting to write my own method,
but was just wondering if any are available.
http://java.sun.com/products/javabeans/docs/spec.html
so the proper property name would be "orderNumber" in this particular case.
Kindest regards,Craig
Tamer Salama
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]