All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.graphenee.util.GxDataUtils Maven / Gradle / Ivy

There is a newer version: 3.6.6
Show newest version
package io.graphenee.util;

import java.lang.reflect.InvocationTargetException;

import org.apache.commons.beanutils.BeanUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class GxDataUtils {

	private static final Logger L = LoggerFactory.getLogger(GxDataUtils.class);

	public static  void copyValues(Class sourceClass, Class destClass, S source, D dest) {
		try {
			BeanUtils.copyProperties(dest, source);
		} catch (IllegalAccessException | InvocationTargetException e) {
			L.warn(e.getMessage());
		}

		// TODO:Copy faults and collection faults.
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy