*
* @return {@link ProductExample}, the resulting businessclass object.
*/
public ProductExample exampleFromDto(final FullProductDto source) {
Assert.notNull(source, "argument [source] may not be null");
ProductExample result = new ProductExample();
if (source.getProductNumber() != null) {
result.setProductNumber(source.getProductNumber());
}
if (source.getPrice() != null) {
result.setPrice(source.getPrice());
}
if (source.isInStock() != null) {
result.setInStock(source.isInStock());
}
if (source.isOrderable() != null) {
result.setOrderable(source.isOrderable());
}
if (source.getMinimalQuantity() != null) {
result.setMinimalQuantity(source.getMinimalQuantity());
}
return result;
}