Class NullAwareBeanUtils

java.lang.Object
sk.iway.iwcm.system.spring.NullAwareBeanUtils

public class NullAwareBeanUtils extends Object
  • Method Details

    • copyProperties

      public static void copyProperties(Object source, Object target) throws org.springframework.beans.BeansException
      Throws:
      org.springframework.beans.BeansException
    • copyProperties

      public static void copyProperties(Object source, Object destination, String... ignoreProperties)
      Copies properties from one object to another
      Parameters:
      source -
    • copyProperties

      public static void copyProperties(Object source, Object destination, List<String> alwaysCopyProperties, String... ignoreProperties)
      Skopiruje atributy zo source objektu do destination
      Parameters:
      source -
      destination -
      alwaysCopyProperties - - zoznam properties, ktore sa skopiruju aj ked su Null (typicky Date property)
      ignoreProperties - - zoznam properties, ktore sa ignoruju a nebudu sa kopirovat