copyProperties
public static void copyProperties(java.lang.Object dest,
java.lang.Object origin,
PojoUtils.FieldNaming field_naming,
java.lang.String[] skip_fields)
Copy properties "of the same name" from one POJO to the other. If the fields are
named consistently (both sides have fields named "_foo" and/or "bar") this acts like
Apache Commons PojoUtils.copyProperties(). If one side has leading underscores and
the other does not then the names are conformed according to the field_naming
parameter.
- Parameters:
dest - Destination POJOorigin - Origin POJOfield_naming - Are the fields named consistently, or does one side have underscores?skip_fields - Array of origin or destination field names to skip