Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Spring BeanWrapperImpl getPropertyValue() have no type.

Spring BeanWrapperImpl getPropertyValue() have no type.

Explorer

Hi,

I need to automatically call all getters from a model object.

I use the following way:

BeanWrapperImpl wrapper = new BeanWrapperImpl(moca);//moca is a value object
Object value=wrapper.getPropertyValue(m.toString());

However, the value have no type. How do i cast the the value to it original type?

Don't have an account?
Coming from Hortonworks? Activate your account here