This discussion is archived
2 Replies Latest reply: Aug 8, 2011 8:48 AM by Maris RSS

BeanUtils Preserving Object Type

800461 Newbie
Currently Being Moderated

I am running into an issue and would appreciate if someone pointed me in the right direction.

I am using commons beanutils. My goal is to take an arbitrary POJO and turn it into a Map.
I am using BeanUtils.describe(), but it looks like all the values from the pojo return as strings, whereas I need them to preserve the type, or get wrapped if they are primitives.

If someone can point me in the right direction it would be greatly appreciated.