Package sk.iway.iwcm.system.spring
Class NullAwareBeanUtils
java.lang.Object
sk.iway.iwcm.system.spring.NullAwareBeanUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyProperties
(Object source, Object target) static void
copyProperties
(Object source, Object destination, String... ignoreProperties) Copies properties from one object to anotherstatic void
copyProperties
(Object source, Object destination, List<String> alwaysCopyProperties, String... ignoreProperties) Skopiruje atributy zo source objektu do destination
-
Method Details
-
copyProperties
public static void copyProperties(Object source, Object target) throws org.springframework.beans.BeansException - Throws:
org.springframework.beans.BeansException
-
copyProperties
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
-