Skip to content

Instantly share code, notes, and snippets.

@rkroll
Created February 7, 2013 15:48
Show Gist options
  • Save rkroll/4731777 to your computer and use it in GitHub Desktop.
Save rkroll/4731777 to your computer and use it in GitHub Desktop.
private static final String[] ABSTRACT_MODEL_PROPERTIES_TO_IGNORE_ON_COPY;
static {
ArrayList<String> abstractModelPropertiesList = new ArrayList<String>();
for (PropertyDescriptor propertyDescriptor : BeanUtils.getPropertyDescriptors(AbstractModel.class)) {
abstractModelPropertiesList.add(propertyDescriptor.getName());
}
ABSTRACT_MODEL_PROPERTIES_TO_IGNORE_ON_COPY = abstractModelPropertiesList.toArray(new String[abstractModelPropertiesList.size()]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment