commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roman Sokolyuk <romsok.t...@gmail.com>
Subject Preserving property type
Date Sat, 03 Apr 2010 20:47:11 GMT
Hi,

I wrote a small utility class to convert a POJO into a Map. and I use
BeanUtils.describe() method to do it.
But it looks like describe() returns all POJO properties as Strings, which
gives me trouble.

Could someone please suggest how I can stillget a Map out of a POJO easily,
but preserve the property types, or if they are primitives autobox them into
the appropriate wrappers?

Thanks.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message