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

io.oasp.module.beanmapping.common.impl.IdentityConverter Maven / Gradle / Ivy

Go to download

Minimal shim for bean mapping to convert between compatible Java beans (e.g. JPA entity to transfer-object and vice versa).

There is a newer version: 3.0.0
Show newest version
package io.oasp.module.beanmapping.common.impl;

import org.dozer.CustomConverter;

/**
 * Dozer {@link CustomConverter} that returns the original source object reference (identity conversion).
 *
 * @deprecated - use {@link io.oasp.module.beanmapping.common.impl.dozer.IdentityConverter}
 */
@Deprecated
public class IdentityConverter implements CustomConverter {

  /**
   * The constructor.
   */
  public IdentityConverter() {

    super();
    System.err.println("This class is deprecated. Please use "
        + io.oasp.module.beanmapping.common.impl.dozer.IdentityConverter.class.getName());
  }

  @Override
  public Object convert(Object destination, Object source, Class destinationClass, Class sourceClass) {

    return source;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy