Example usage for org.springframework.beans BeanUtils copyProperties

List of usage examples for org.springframework.beans BeanUtils copyProperties

Introduction

In this page you can find the example usage for org.springframework.beans BeanUtils copyProperties.

Prototype

public static void copyProperties(Object source, Object target) throws BeansException 

Source Link

Document

Copy the property values of the given source bean into the target bean.

Usage

From source file:org.nekorp.workflow.desktop.servicio.bridge.DomicilioFiscalBridge.java

@Override
public void load(DomicilioFiscal origen, DomicilioFiscalVB destino) {
    BeanUtils.copyProperties(origen, destino);
}

From source file:org.nekorp.workflow.desktop.servicio.bridge.EvidenciaBridge.java

@Override
public void load(Evidencia origen, EvidenciaVB destino) {
    BeanUtils.copyProperties(origen, destino);
}

From source file:technology.tikal.customers.model.media.EmailOfy.java

@Override
public void update(Email source) {
    BeanUtils.copyProperties(source, this);
}

From source file:org.nekorp.workflow.desktop.servicio.bridge.DatosAutoBridge.java

@Override
public void load(DatosAuto origen, DatosAutoVB destino) {
    BeanUtils.copyProperties(origen, destino);
    destino.setCombustible(StringUtils.defaultIfEmpty(origen.getCombustible(), "0"));
}

From source file:technology.tikal.customers.model.media.SocialNetworkOfy.java

@Override
public void update(SocialNetwork source) {
    BeanUtils.copyProperties(source, this);
}

From source file:technology.tikal.customers.model.address.MexicoAddressOfy.java

@Override
public void update(MexicoAddress source) {
    BeanUtils.copyProperties(source, this);
}

From source file:com.jiwhiz.rest.user.ProfileForm.java

public ProfileForm(UserAccount account) {
    BeanUtils.copyProperties(account, this);
}

From source file:technology.tikal.customers.model.phone.MxPhoneNumberOfy.java

@Override
public void update(MexicoPhoneNumber source) {
    BeanUtils.copyProperties(source, this);
}

From source file:com.reactive.hzdfs.utils.Digestor.java

/**
 * Deep clone of an object having a default constructor.
 * @param o/*from  w ww  . j a  v a  2s . co  m*/
 * @return
 * @throws IOException ignored silently
 * @throws ClassNotFoundException ignored silently
 */
@SuppressWarnings("unchecked")
public static <T> T deepCopy(Serializable o) {
    try {
        T t = (T) o.getClass().newInstance();
        BeanUtils.copyProperties(o, t);

        return t;
    } catch (Exception e) {
        e.printStackTrace();
    }
    return null;

}

From source file:org.nekorp.workflow.desktop.servicio.bridge.DomicilioFiscalBridge.java

@Override
public void unload(DomicilioFiscalVB origen, DomicilioFiscal destino) {
    BeanUtils.copyProperties(origen, destino);
}