- BeanTransformerSpi transformer = new BeanTransformer(new TimestampTransformerFactory());
- BeanReplicator bp = new BeanReplicator(transformer);
-
+ BeanTransformer bt = new BeanTransformer(
+ new TimestampTransformerFactory(),
+ new DTOTransformerFactory());
+ // Don't check parameter types of getters and setters.
+ // Find them just by property name.
+ bt.initDetailedPropertyFilter(null);
+
+ BeanReplicator bp = new BeanReplicator(bt);