Top "Apache-commons-beanutils" questions

Provides dynamic access to Java Bean object properties (without compiled-in knowledge of the property getter and setter methods to be called)

PropertyUtils.getProperty fails when trying to get a simple property value

I've a strange issue with the PropertyUtils.getProperty(bean, fieldName) method, where I got a java.lang.NoShuchMethodException. Suppose we …

java apache-commons-beanutils
Performance of BeanUtils vs. ReflectionToStringBuilder (for use in Bean classes)

I have a large number of Java bean classes in my web application, and I am trying to find a …

java performance reflection javabeans apache-commons-beanutils
Retrieve field values using BeanUtils

I want to extract private field values that are not marked by certain custom annotation, is this possible via BeanUtils? …

java apache-commons-beanutils
Setting field value to null with reflection

I am setting a variable value to null, but having problem with it: public class BestObject { private Timestamp deliveryDate; public …

java reflection apache-commons-beanutils
BeanUtils.copyProperties() vs DozerBeanMapper.map()

I am using BeanUtils.copyProperties() for bean to dto mapping when I need to map all fields and field names …

java mapping dozer apache-commons-beanutils
Is it possible automatically instantiation of a nested Property with Commons Bean Utils?

I'm using PropertyUtils.setProperty(object, name, value) method of Apache Commons Bean Utils: Giving these classes: public class A { B …

java reflection apache-commons-beanutils
Java Collections.sort - help me remove the unchecked warning

List<Question> questions = new ArrayList<Question>(); questions.addAll(getAllQuestions()); //returns a set of Questions Collections.sort(…

java generics comparator apache-commons-beanutils
BeanUtils.setProperty not working for Boolean values?

I have this simple Bean class and try to set some values with BeanUtils.setProperty Problem is, it seems that …

java apache-commons-beanutils
BeanUtils.copyProperties ignoring null values

I have the following class: import org.apache.commons.beanutils.BeanUtils; import com.thoughtworks.xstream.XStream; ... public class MyBean { protected …

java xstream apache-commons-beanutils
How to map POJO in to DTO, if fields are with different name

Problem description: I have a POJO object, which is mapped from database. Which having attributes(column) with same name as …

java mapping dto pojo apache-commons-beanutils